Add --version command-line option.
Chris Pressey
4 years ago
139 | 139 |
argparser.add_argument('router', metavar='ROUTER', type=str,
|
140 | 140 |
help='JSON file containing the backup router description'
|
141 | 141 |
)
|
|
142 |
argparser.add_argument('--version', action='version', version="%(prog)s 0.3")
|
142 | 143 |
|
143 | 144 |
subparsers = argparser.add_subparsers()
|
144 | 145 |
|