summaryrefslogtreecommitdiff
path: root/src/caelestia/parser.py
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-14 02:11:10 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-14 02:11:10 +1000
commitb805f8d67725352817d248562683cb90bf314401 (patch)
tree511edf471c11e7b99b0cb4ea43ad275f339c18cc /src/caelestia/parser.py
parentwallpaper: fix when no wall (diff)
downloadcaelestia-cli-b805f8d67725352817d248562683cb90bf314401.tar.gz
caelestia-cli-b805f8d67725352817d248562683cb90bf314401.tar.bz2
caelestia-cli-b805f8d67725352817d248562683cb90bf314401.zip
feat: impl recording subcommand
Diffstat (limited to 'src/caelestia/parser.py')
-rw-r--r--src/caelestia/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/caelestia/parser.py b/src/caelestia/parser.py
index 02ac3b9..6d0b552 100644
--- a/src/caelestia/parser.py
+++ b/src/caelestia/parser.py
@@ -68,7 +68,7 @@ def parse_args() -> (argparse.ArgumentParser, argparse.Namespace):
# Create parser for record opts
record_parser = command_parser.add_parser("record", help="start a screen recording")
record_parser.set_defaults(cls=record.Command)
- record_parser.add_argument("-r", "--region", action="store_true", help="record a region")
+ record_parser.add_argument("-r", "--region", nargs="?", const="slurp", help="record a region")
record_parser.add_argument("-s", "--sound", action="store_true", help="record audio")
# Create parser for clipboard opts