File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
pythonforandroid/bootstraps Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ def parse_args(args=None):
415
415
'Usually one of "landscape", "portrait" or '
416
416
'"sensor"' ))
417
417
ap .add_argument ('--permission' , dest = 'permissions' , action = 'append' ,
418
- help = 'The permissions to give this app.' )
418
+ help = 'The permissions to give this app.' , nargs = '+' )
419
419
ap .add_argument ('--ignore-path' , dest = 'ignore_path' , action = 'append' ,
420
420
help = 'Ignore path when building the app' )
421
421
ap .add_argument ('--icon' , dest = 'icon' ,
@@ -488,6 +488,9 @@ def parse_args(args=None):
488
488
489
489
if args .permissions is None :
490
490
args .permissions = []
491
+ elif args .permissions :
492
+ if isinstance (args .permissions [0 ], list ):
493
+ args .permissions = [p for perm in args .permissions for p in perm ]
491
494
492
495
if args .ignore_path is None :
493
496
args .ignore_path = []
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ def parse_args(args=None):
417
417
ap .add_argument ('--icon' , dest = 'icon' ,
418
418
help = 'A png file to use as the icon for the application.' )
419
419
ap .add_argument ('--permission' , dest = 'permissions' , action = 'append' ,
420
- help = 'The permissions to give this app.' )
420
+ help = 'The permissions to give this app.' , nargs = '+' )
421
421
ap .add_argument ('--meta-data' , dest = 'meta_data' , action = 'append' ,
422
422
help = 'Custom key=value to add in application metadata' )
423
423
ap .add_argument ('--presplash' , dest = 'presplash' ,
@@ -488,6 +488,9 @@ def parse_args(args=None):
488
488
489
489
if args .permissions is None :
490
490
args .permissions = []
491
+ elif args .permissions :
492
+ if isinstance (args .permissions [0 ], list ):
493
+ args .permissions = [p for perm in args .permissions for p in perm ]
491
494
492
495
if args .meta_data is None :
493
496
args .meta_data = []
Original file line number Diff line number Diff line change @@ -404,7 +404,7 @@ def parse_args(args=None):
404
404
ap .add_argument ('--icon' , dest = 'icon' ,
405
405
help = 'A png file to use as the icon for the application.' )
406
406
ap .add_argument ('--permission' , dest = 'permissions' , action = 'append' ,
407
- help = 'The permissions to give this app.' )
407
+ help = 'The permissions to give this app.' , nargs = '+' )
408
408
ap .add_argument ('--meta-data' , dest = 'meta_data' , action = 'append' ,
409
409
help = 'Custom key=value to add in application metadata' )
410
410
ap .add_argument ('--presplash' , dest = 'presplash' ,
@@ -465,6 +465,9 @@ def parse_args(args=None):
465
465
466
466
if args .permissions is None :
467
467
args .permissions = []
468
+ elif args .permissions :
469
+ if isinstance (args .permissions [0 ], list ):
470
+ args .permissions = [p for perm in args .permissions for p in perm ]
468
471
469
472
if args .meta_data is None :
470
473
args .meta_data = []
You can’t perform that action at this time.
0 commit comments