diff --git a/pyodide_build/__main__.py b/pyodide_build/__main__.py old mode 100644 new mode 100755 index a55a5173a..ab8ad9543 --- a/pyodide_build/__main__.py +++ b/pyodide_build/__main__.py @@ -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__':