diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-13 20:18:58 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-12-16 22:14:03 +0000 |
commit | e5344317d3b69475239c4793463dceb30cbc6433 (patch) | |
tree | 56b3f214047d1c5dc09d607825a4b17ccd7b026f /alot/init.py | |
parent | ea41eda39822ccd14f18dfdc50191996e07e03d3 (diff) |
added --version switch to commandline arguments
Diffstat (limited to 'alot/init.py')
-rwxr-xr-x | alot/init.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/alot/init.py b/alot/init.py index 9627370f..362fb49c 100755 --- a/alot/init.py +++ b/alot/init.py @@ -11,6 +11,7 @@ from ui import UI import alot.commands as commands from commands import * from alot.commands import CommandParseError +import alot def parse_args(): @@ -40,6 +41,8 @@ def parse_args(): parser.add_argument('command', nargs='?', default='', help='initial command') + parser.add_argument('-v', '--version', action='version', + version='%(prog)s ' + alot.__version__) return parser.parse_args() |