commit: 3cc8b2b49bdc30d78671e608bd3a1600e312ee99 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Jan 18 16:12:09 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Jan 18 16:12:09 2024 +0000 URL: https://gitweb.gentoo.org/proj/gentoopm.git/commit/?id=3cc8b2b4
querycli: Require a subcommand Closes: https://github.com/projg2/gentoopm/issues/3 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> gentoopm/querycli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gentoopm/querycli.py b/gentoopm/querycli.py index 084bfa4..cc05367 100644 --- a/gentoopm/querycli.py +++ b/gentoopm/querycli.py @@ -264,7 +264,7 @@ class PMQueryCLI(object): 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)
