diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-03-23 13:07:20 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-03-23 13:07:20 -0400 |
commit | f168ac9ac958a60e3c8fd656649939061f617501 (patch) | |
tree | d464a1940b8403872ba3654e3b73e176beb620c7 /b4/command.py | |
parent | da3e51194c649b29b98f23c1af1b50c8578cdd5c (diff) | |
download | b4-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.py | 2 |
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, |