diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-13 00:42:46 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-13 00:42:46 +1000 |
| commit | 796d538b168855ebd2afd62278800151816adcab (patch) | |
| tree | 27a29d9a44b8a7a6e68973d84895055a8aa37c9a /src/caelestia/parser.py | |
| parent | scheme: ensure enough colours (diff) | |
| download | caelestia-cli-796d538b168855ebd2afd62278800151816adcab.tar.gz caelestia-cli-796d538b168855ebd2afd62278800151816adcab.tar.bz2 caelestia-cli-796d538b168855ebd2afd62278800151816adcab.zip | |
feat: impl screenshot command
Diffstat (limited to 'src/caelestia/parser.py')
| -rw-r--r-- | src/caelestia/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/caelestia/parser.py b/src/caelestia/parser.py index f8c7bac..02ac3b9 100644 --- a/src/caelestia/parser.py +++ b/src/caelestia/parser.py @@ -60,7 +60,7 @@ def parse_args() -> (argparse.ArgumentParser, argparse.Namespace): # Create parser for screenshot opts screenshot_parser = command_parser.add_parser("screenshot", help="take a screenshot") screenshot_parser.set_defaults(cls=screenshot.Command) - screenshot_parser.add_argument("-r", "--region", help="take a screenshot of a region") + screenshot_parser.add_argument("-r", "--region", nargs="?", const="slurp", help="take a screenshot of a region") screenshot_parser.add_argument( "-f", "--freeze", action="store_true", help="freeze the screen while selecting a region" ) |