Skip to content

Commit

Permalink
querycli: Require a subcommand
Browse files Browse the repository at this point in the history
Closes: #3
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Jan 18, 2024
1 parent 597b022 commit 3cc8b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gentoopm/querycli.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def __init__(self):
choices=all_pms,
)

subp = arg.add_subparsers(title="Sub-commands")
subp = arg.add_subparsers(title="Sub-commands", required=True)
for cmd_name, cmd_help, cmd_class in PMQueryCommands():
p = subp.add_parser(cmd_name, help=cmd_help)
cmd_class(p)
Expand Down

0 comments on commit 3cc8b2b

Please sign in to comment.