Commit 221f373c authored by Georg Teufelberger's avatar Georg Teufelberger
Browse files

Add flag to print version number

parent 0cea9fe6
......@@ -679,6 +679,11 @@ def setup_arg_parser():
action="store_true",
help="Print additional debugging information."
)
parser.add_argument(
"--version",
action="store_true",
help="Print version number and exit."
)
return parser
def print_usage():
......@@ -715,6 +720,11 @@ def remove_illegal_characters(str):
parser = setup_arg_parser()
args = parser.parse_args()
# Check for version flag
if args.version:
print_information(program_version)
sys.exit()
# Apply commands from input
apply_args(args)
......
Supports Markdown
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