Commit 15e098a6 authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub

Merge pull request #297 from mdboom/fix-pyodide-help

Make bin/pyodide display help rather than crash
parents 89954025 4d3095ab
......@@ -19,8 +19,11 @@ def main():
parser.set_defaults(func=module.main)
args = main_parser.parse_args()
# run the selected action
args.func(args)
if hasattr(args, 'func'):
# run the selected action
args.func(args)
else:
main_parser.print_help()
if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment