aboutsummaryrefslogtreecommitdiff
path: root/python/bro.py
diff options
context:
space:
mode:
authorCosimo Lupo <cosimo.lupo@daltonmaag.com>2015-08-11 10:39:14 +0100
committerCosimo Lupo <cosimo.lupo@daltonmaag.com>2015-08-11 11:12:56 +0100
commit8c7edd3e07b46634361f47fce220ed8c5a9be8aa (patch)
treeda5e98ccb26b9f1d844527a1b521c9568e8f2c7c /python/bro.py
parentac33d35632ad127e7a27d10c7e7bee2e8a70496f (diff)
downloadbrotli-8c7edd3e07b46634361f47fce220ed8c5a9be8aa.zip
brotli-8c7edd3e07b46634361f47fce220ed8c5a9be8aa.tar.gz
brotli-8c7edd3e07b46634361f47fce220ed8c5a9be8aa.tar.bz2
[bro.py] print --version as brotli.__version__
Diffstat (limited to 'python/bro.py')
-rwxr-xr-xpython/bro.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/bro.py b/python/bro.py
index 3d21a77..0f307fb 100755
--- a/python/bro.py
+++ b/python/bro.py
@@ -9,9 +9,6 @@ import brotli
import platform
-__version__ = '1.0'
-
-
# default values of encoder parameters
DEFAULT_PARAMS = {
'mode': brotli.MODE_GENERIC,
@@ -54,7 +51,7 @@ def main():
parser = argparse.ArgumentParser(
prog='bro.py',
description="Compression/decompression utility using the Brotli algorithm.")
- parser.add_argument('--version', action='version', version='%(prog)s 1.0')
+ parser.add_argument('--version', action='version', version=brotli.__version__)
parser.add_argument('-i', '--input', metavar='FILE', type=str, dest='infile',
help='Input file', default=None)
parser.add_argument('-o', '--output', metavar='FILE', type=str, dest='outfile',