From 0714622d09e764c82c9b748ce8845fdbc11608fb Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 19 Jun 2025 15:47:44 +1000 Subject: shell: filter log --- src/caelestia/parser.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/caelestia/parser.py') 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 -- cgit v1.2.3-freya