Skip to content

Commit

Permalink
packages.py: Fix invocation of gentoo-packages without subcommand
Browse files Browse the repository at this point in the history
Symptom was:
> # gentoo-packages --pkgdir XXX
> ERROR: 'Namespace' object has no attribute 'command_func'
  • Loading branch information
hartwork committed Sep 3, 2024
1 parent 1b4c4c5 commit 472c9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binary_gentoo/internal/cli/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def parse_command_line(argv):
add_version_argument_to(parser)
add_pkgdir_argument_to(parser)

subcommands = parser.add_subparsers(title='subcommands')
subcommands = parser.add_subparsers(title='subcommands', required=True)

delete_command = subcommands.add_parser('delete',
help='drop package entries and '
Expand Down

0 comments on commit 472c9a2

Please sign in to comment.