Skip to content

Commit e9e766f

Browse files
committed
Fix crash with required subparser without dest
1 parent 18b7c69 commit e9e766f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reolinkfw/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async def extract(args: Namespace) -> None:
6363
def main() -> None:
6464
parser = ArgumentParser(description="Extract information and files from Reolink firmwares")
6565
parser.add_argument("-V", "--version", action="version", version=f"%(prog)s {__version__}")
66-
subparsers = parser.add_subparsers(required=True)
66+
subparsers = parser.add_subparsers(dest="command", required=True)
6767

6868
pcache = ArgumentParser(add_help=False)
6969
pcache.add_argument("--no-cache", action="store_true", help="don't use cache for remote files (URLs)")

0 commit comments

Comments
 (0)