diff options
author | Simon Warta <[email protected]> | 2017-04-25 00:17:46 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-04-25 23:54:04 +0200 |
commit | f7df73c0a989eef68cc3c209f05633f7294847fa (patch) | |
tree | a5589a1eff131a54d7e0cccfcbf4db47a59da530 /configure.py | |
parent | 66d3927239b8b04a947c7724d4fa7141cccf0295 (diff) |
Make argv non-optional in main()
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/configure.py b/configure.py index 996ae755c..747af4a82 100755 --- a/configure.py +++ b/configure.py @@ -2674,21 +2674,16 @@ def validate_options(options, info_os, info_cc, available_module_policies): logging.warning('Detected GCC on Windows; use --os=cygwin or --os=mingw?') -def main(argv=None): +def main(argv): """ Main driver """ - if argv is None: - argv = sys.argv - options = process_command_line(argv[1:]) setup_logging(options) - logging.info('%s invoked with options "%s"' % ( - argv[0], ' '.join(argv[1:]))) - + logging.info('%s invoked with options "%s"' % (argv[0], ' '.join(argv[1:]))) logging.info('Platform: OS="%s" machine="%s" proc="%s"' % ( platform.system(), platform.machine(), platform.processor())) @@ -2839,7 +2834,7 @@ def main(argv=None): if __name__ == '__main__': try: - main() + main(argv=sys.argv) except UserError as e: logging.debug(traceback.format_exc()) logging.error(e) |