summaryrefslogtreecommitdiff
path: root/src/caelestia/parser.py
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-12 16:23:14 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-12 16:23:14 +1000
commite75e727262573de25ee1e1e75bd93e3647dc3609 (patch)
tree4dd8aaa0535a4aa7d997848f969e569f74fff2fb /src/caelestia/parser.py
parentscheme: better print (diff)
downloadcaelestia-cli-e75e727262573de25ee1e1e75bd93e3647dc3609.tar.gz
caelestia-cli-e75e727262573de25ee1e1e75bd93e3647dc3609.tar.bz2
caelestia-cli-e75e727262573de25ee1e1e75bd93e3647dc3609.zip
scheme: add variant option
Remove variant subcommand
Diffstat (limited to 'src/caelestia/parser.py')
-rw-r--r--src/caelestia/parser.py22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/caelestia/parser.py b/src/caelestia/parser.py
index 9718938..3f6f506 100644
--- a/src/caelestia/parser.py
+++ b/src/caelestia/parser.py
@@ -1,18 +1,6 @@
import argparse
-from caelestia.subcommands import (
- clipboard,
- emoji,
- pip,
- record,
- scheme,
- screenshot,
- shell,
- toggle,
- variant,
- wallpaper,
- wsaction,
-)
+from caelestia.subcommands import clipboard, emoji, pip, record, scheme, screenshot, shell, toggle, wallpaper, wsaction
from caelestia.utils.scheme import get_scheme_names, scheme_variants
@@ -65,13 +53,7 @@ def parse_args() -> (argparse.ArgumentParser, argparse.Namespace):
scheme_parser.add_argument("-n", "--name", choices=get_scheme_names(), help="the name of the scheme to switch to")
scheme_parser.add_argument("-f", "--flavour", help="the flavour to switch to")
scheme_parser.add_argument("-m", "--mode", choices=["dark", "light"], help="the mode to switch to")
-
- # Create parser for variant opts
- variant_parser = command_parser.add_parser("variant", help="manage the dynamic scheme variant")
- variant_parser.set_defaults(cls=variant.Command)
- variant_parser.add_argument("-g", "--get", action="store_true", help="print the current dynamic scheme variant")
- variant_parser.add_argument("-s", "--set", choices=scheme_variants, help="set the current dynamic scheme variant")
- variant_parser.add_argument("-r", "--random", action="store_true", help="switch to a random variant")
+ scheme_parser.add_argument("-v", "--variant", choices=scheme_variants, help="the variant to switch to")
# Create parser for screenshot opts
screenshot_parser = command_parser.add_parser("screenshot", help="take a screenshot")