summaryrefslogtreecommitdiff
path: root/src/caelestia/subcommands
diff options
context:
space:
mode:
Diffstat (limited to 'src/caelestia/subcommands')
-rw-r--r--src/caelestia/subcommands/shell.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/caelestia/subcommands/shell.py b/src/caelestia/subcommands/shell.py
index effff3a..68a6821 100644
--- a/src/caelestia/subcommands/shell.py
+++ b/src/caelestia/subcommands/shell.py
@@ -22,7 +22,9 @@ class Command:
self.message(*self.args.message)
else:
# Start the shell
- args = ["qs", "-c", "caelestia", "-n", "--log-rules", self.args.log_rules]
+ args = ["qs", "-c", "caelestia", "-n"]
+ if self.args.log_rules:
+ args.append("--log-rules", self.args.log_rules)
if self.args.daemon:
args.append("-d")
subprocess.run(args)