mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-11 21:36:23 +00:00
semanage: Print usage when no args
https://bugs.python.org/issue16308 Traceback (most recent call last): File "semanage", line 932, in <module> do_parser() File "semanage", line 911, in do_parser args.func(args) AttributeError: 'Namespace' object has no attribute 'func' Signed-off-by: James Carter <jwcart2@tycho.nsa.gov>
This commit is contained in:
parent
05d1cead3d
commit
d2424c6c98
@ -856,6 +856,7 @@ def createCommandParser():
|
||||
|
||||
#To add a new subcommand define the parser for it in a function above and call it here.
|
||||
subparsers = commandParser.add_subparsers(dest='subcommand')
|
||||
subparsers.required = True
|
||||
setupImportParser(subparsers)
|
||||
setupExportParser(subparsers)
|
||||
setupLoginParser(subparsers)
|
||||
|
Loading…
Reference in New Issue
Block a user