Automatically show python-appimage usage when no arguments are provided

Fixes #21
This commit is contained in:
Srevin Saju
2020-06-14 11:30:53 +03:00
parent 0dcfd10c4b
commit 9088e7fc84

View File

@@ -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: