summaryrefslogtreecommitdiff
path: root/bidding_data.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-09-06 00:16:57 +0200
committeremkael <emkael@tlen.pl>2015-09-13 01:21:43 +0200
commit455c3aac2228bcd1af1f484bc8e48846fa0f5a53 (patch)
tree4c4a57e0905f51f20dfbb601c7a47d1944c39210 /bidding_data.py
parentc20c85f5f64c79fde4ccf983f2414823e6f960d7 (diff)
* version information in command output
Conflicts: bidding_data.py
Diffstat (limited to 'bidding_data.py')
-rw-r--r--bidding_data.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bidding_data.py b/bidding_data.py
index 3373ca4..c489388 100644
--- a/bidding_data.py
+++ b/bidding_data.py
@@ -6,6 +6,8 @@ import re
from os import path, remove
from bs4 import BeautifulSoup as bs4
+__version__ = '1.0.1'
+
class JFRBidding:
@@ -302,6 +304,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('bidding_file', metavar='BIDDING_FILE',
help='CSV containing bidding data from BWS',
type=file_path)