summaryrefslogtreecommitdiff
path: root/src/caelestia/parser.py
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-19 15:47:44 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-19 15:47:44 +1000
commit0714622d09e764c82c9b748ce8845fdbc11608fb (patch)
tree026e084e36a12e60fdd8e5fb2ffca80f924f047f /src/caelestia/parser.py
parentscreenshot: use shell for region (diff)
downloadcaelestia-cli-0714622d09e764c82c9b748ce8845fdbc11608fb.tar.gz
caelestia-cli-0714622d09e764c82c9b748ce8845fdbc11608fb.tar.bz2
caelestia-cli-0714622d09e764c82c9b748ce8845fdbc11608fb.zip
shell: filter log
Diffstat (limited to 'src/caelestia/parser.py')
-rw-r--r--src/caelestia/parser.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/caelestia/parser.py b/src/caelestia/parser.py
index e39b29c..271b97c 100644
--- a/src/caelestia/parser.py
+++ b/src/caelestia/parser.py
@@ -20,13 +20,12 @@ def parse_args() -> (argparse.ArgumentParser, argparse.Namespace):
shell_parser.add_argument("message", nargs="*", help="a message to send to the shell")
shell_parser.add_argument("-d", "--daemon", action="store_true", help="start the shell detached")
shell_parser.add_argument("-s", "--show", action="store_true", help="print all shell IPC commands")
+ shell_parser.add_argument("-l", "--log", action="store_true", help="print the shell log")
shell_parser.add_argument(
- "-l",
- "--log",
- nargs="?",
- const="quickshell.dbus.properties.warning=false;quickshell.dbus.dbusmenu.warning=false;quickshell.service.notifications.warning=false;quickshell.service.sni.host.warning=false",
+ "--log-rules",
+ default="quickshell.dbus.properties.warning=false;quickshell.dbus.dbusmenu.warning=false;quickshell.service.notifications.warning=false;quickshell.service.sni.host.warning=false",
metavar="RULES",
- help="print the shell log",
+ help="log rules to apply",
)
# Create parser for toggle opts