support -V, --version
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
5260f230e5
commit
8f34f8659b
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue