From 5b16b033b1f4d26dd2a9ee7f5ff1622335c22ea1 Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 6 Sep 2015 00:16:57 +0200 Subject: * version information in command output --- src/bidding_data.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/bidding_data.py b/src/bidding_data.py index 70fa366..7a7cd52 100644 --- a/src/bidding_data.py +++ b/src/bidding_data.py @@ -6,6 +6,8 @@ import pypyodbc from os import path, remove from bs4 import BeautifulSoup as bs4 +__version__ = '1.0.1' + class JFRBidding: @@ -295,6 +297,10 @@ if __name__ == '__main__': else: argument_parser.error('File %s does not exist' % filepath) + argument_parser.add_argument('-V', '--version', action='version', + version='%(prog)s {version}'.format( + version=__version__)) + argument_parser.add_argument('bws_file', metavar='BWS_FILE', help='path to BWS file', type=file_path) -- cgit v1.2.3