We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d89a8d3 commit ed6a53bCopy full SHA for ed6a53b
pythonforandroid/toolchain.py
@@ -330,15 +330,17 @@ def __init__(self):
330
# 'handled, exiting.')
331
# exit(1)
332
333
- if not hasattr(self, args.command):
+ command_method_name = args.command.replace('-', '_')
334
+
335
+ if not hasattr(self, command_method_name):
336
print('Unrecognized command')
337
parser.print_help()
338
exit(1)
339
340
self.ctx.local_recipes = args.local_recipes
341
self.ctx.copy_libs = args.copy_libs
342
- getattr(self, args.command)(unknown)
343
+ getattr(self, command_method_name)(unknown)
344
345
@property
346
def default_storage_dir(self):
0 commit comments