summaryrefslogtreecommitdiff
path: root/src/caelestia/parser.py
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 12:49:16 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 12:49:16 +1000
commit2c94c42cbd269b9b7fae3ad4d33e31e493e739b4 (patch)
tree3593981fecd1847bd0bfe423a0f7942483ba9055 /src/caelestia/parser.py
parentcompletions: update for prev commit (diff)
downloadcaelestia-cli-2c94c42cbd269b9b7fae3ad4d33e31e493e739b4.tar.gz
caelestia-cli-2c94c42cbd269b9b7fae3ad4d33e31e493e739b4.tar.bz2
caelestia-cli-2c94c42cbd269b9b7fae3ad4d33e31e493e739b4.zip
scheme: add notify opt
For sending a notification on error
Diffstat (limited to 'src/caelestia/parser.py')
-rw-r--r--src/caelestia/parser.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/caelestia/parser.py b/src/caelestia/parser.py
index 824158a..5b1e924 100644
--- a/src/caelestia/parser.py
+++ b/src/caelestia/parser.py
@@ -68,6 +68,7 @@ def parse_args() -> (argparse.ArgumentParser, argparse.Namespace):
set_parser = scheme_command_parser.add_parser("set", help="set the current scheme")
set_parser.set_defaults(cls=scheme.Set)
+ set_parser.add_argument("--notify", action="store_true", help="send a notification on error")
set_parser.add_argument("-r", "--random", action="store_true", help="switch to a random scheme")
set_parser.add_argument("-n", "--name", choices=get_scheme_names(), help="the name of the scheme to switch to")
set_parser.add_argument("-f", "--flavour", help="the flavour to switch to")