From f0e58f702e421a4b909c8bef82001d752d7be1e2 Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Sat, 23 Dec 2023 20:14:02 -0700 Subject: [PATCH] Screenshot: Fix argument defaults --- bin/screenshot_wayland.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/screenshot_wayland.py b/bin/screenshot_wayland.py index a2e7dcf..a991211 100755 --- a/bin/screenshot_wayland.py +++ b/bin/screenshot_wayland.py @@ -240,7 +240,6 @@ def parse_tar(s: str) -> Path: else: raise Exception(f"{s} is not a path to a .{{tar,tgz,tar.gz}} file") - parser = argparse.ArgumentParser( prog="Screenshot Wayland v1.0.0", description='Take a screenshot on Sway' @@ -345,14 +344,16 @@ archive_subcmd = subcommands.add_parser( archive_subcmd.add_argument( '-e', '--extension', type=str, + default=DEFAULT_EDIT_EXTENSION, metavar="", help='Change image extension and image type backed up', ); archive_subcmd.add_argument( '-q', '--quality', type=parse_percent, + default=DEFAULT_EDIT_QUALITY, metavar='', - help='Set quality of new image. [0, 100], higher means bigger file', + help='Set quality of backed up images. [0, 100], higher means bigger file', ); archive_subcmd.add_argument( 'which', metavar='',