mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 04:10:15 +01:00
Automatically show python-appimage usage when no arguments are provided
Fixes #21
This commit is contained in:
@@ -82,6 +82,11 @@ def main():
|
||||
if args.verbosity:
|
||||
logging.getLogger().setLevel(args.verbosity)
|
||||
|
||||
# check if no arguments are passed
|
||||
if args.command is None:
|
||||
parser.print_help()
|
||||
return
|
||||
|
||||
# Call the requested command
|
||||
module = '.commands.' + args.command
|
||||
if args.sub_command:
|
||||
|
||||
Reference in New Issue
Block a user