Skip to content

Commit 08f7ac5

Browse files
committed
Added command handling if p4a is run with no arguments
1 parent 4a4e66c commit 08f7ac5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythonforandroid/toolchain.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ def add_parser(subparsers, *args, **kwargs):
467467

468468
self.args = args
469469

470+
if args.subparser_name is None:
471+
parser.print_help()
472+
exit(1)
473+
470474
setup_color(args.color)
471475

472476
if args.debug:

0 commit comments

Comments
 (0)