mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
jw-pkg.sh: Print help for missing subcommands
Print a help message if no subcommand is specified for one of the comamnds "distro" and "projects". Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
32b28b5958
commit
c8036ad216
4 changed files with 16 additions and 2 deletions
|
|
@ -43,4 +43,6 @@ class CmdDistro(CmdBase): # export
|
|||
return self.__interactive
|
||||
|
||||
async def _run(self, args):
|
||||
raise Exception("Running with args", args)
|
||||
# Missing subcommand
|
||||
self.parser.print_help()
|
||||
sys.exit(1)
|
||||
|
|
|
|||
|
|
@ -16,4 +16,6 @@ class CmdProjects(CmdBase): # export
|
|||
super().add_arguments(p)
|
||||
|
||||
async def _run(self, args):
|
||||
raise Exception("Running with args", args)
|
||||
# Missing subcommand
|
||||
self.parser.print_help()
|
||||
sys.exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue