summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-09-06 00:16:57 +0200
committeremkael <emkael@tlen.pl>2015-09-06 00:16:57 +0200
commit5b16b033b1f4d26dd2a9ee7f5ff1622335c22ea1 (patch)
tree1d13349e7ff762785f19e707f23b75c8d9b86760 /src
parent46c5d33c9336919d90491bdc69f0f0d9c133a63e (diff)
* version information in command output
Diffstat (limited to 'src')
-rw-r--r--src/bidding_data.py6
1 files changed, 6 insertions, 0 deletions
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)