Skip to content
Snippets Groups Projects
Commit ae405c0d authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fix python 2 failure after adding allow_abbrev

parent dcfea7bc
No related branches found
No related tags found
No related merge requests found
......@@ -459,9 +459,14 @@ def set_up_command_line_arguments():
with `--help`.
"""
parser = argparse.ArgumentParser(
description="Command line interface for bilby scripts",
add_help=False, allow_abbrev=False)
try:
parser = argparse.ArgumentParser(
description="Command line interface for bilby scripts",
add_help=False, allow_abbrev=False)
except TypeError:
parser = argparse.ArgumentParser(
description="Command line interface for bilby scripts",
add_help=False)
parser.add_argument("-v", "--verbose", action="store_true",
help=("Increase output verbosity [logging.DEBUG]." +
" Overridden by script level settings"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment