Commit 73beb3a5 authored by Maxime Perrotin's avatar Maxime Perrotin

Add --version option

parent 300c419a
......@@ -24,7 +24,7 @@ import speedometer_resources
__author__ = "Maxime Perrotin"
__license__ = "BSD"
__version__ = "1.0"
__version__ = "1.0.1"
__url__ = "http://taste.tuxfamily.org"
__all__ = ['Speedometer']
......@@ -318,6 +318,9 @@ def speedometer_cli():
return app.exec_()
if __name__ == '__main__':
sys.exit(speedometer_cli())
if "--version" in (arg for arg in sys.argv):
print("Speedometer version {} - Copyright (c) ESA".format(__version__))
else:
sys.exit(speedometer_cli())
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