support -V, --version

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-09-12 00:08:30 +02:00
parent 5260f230e5
commit 8f34f8659b

View file

@ -614,6 +614,7 @@ if __name__ == "__main__":
parser.add_argument('-V', '--version', help='Show version',
action='version', version='%(prog)s ' + VERSION)
arser.add_argument('--foo', nargs=2)
args = parser.parse_args(sys.argv[1:])
if args.debug: