aboutsummaryrefslogtreecommitdiff
path: root/b4/command.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-03-23 13:07:20 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-03-23 13:07:20 -0400
commitf168ac9ac958a60e3c8fd656649939061f617501 (patch)
treed464a1940b8403872ba3654e3b73e176beb620c7 /b4/command.py
parentda3e51194c649b29b98f23c1af1b50c8578cdd5c (diff)
downloadb4-f168ac9ac958a60e3c8fd656649939061f617501.tar.gz
Use a better single-sourced version setup
Fun read: https://packaging.python.org/guides/single-sourcing-package-version/ Anyway, I hated this way the least. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/command.py')
-rw-r--r--b4/command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/command.py b/b4/command.py
index c2dc2b0..a2c7c28 100644
--- a/b4/command.py
+++ b/b4/command.py
@@ -55,7 +55,7 @@ def cmd():
description='A tool to work with public-inbox patches',
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
- parser.add_argument('--version', action='version', version=b4.VERSION)
+ parser.add_argument('--version', action='version', version=b4.__VERSION__)
parser.add_argument('-d', '--debug', action='store_true', default=False,
help='Add more debugging info to the output')
parser.add_argument('-q', '--quiet', action='store_true', default=False,