Skip to content

Commit 9385bbb

Browse files
committed
fix(commands/version): fix wrongly print commitizen version when it should print project version
1 parent ce8c1b7 commit 9385bbb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

commitizen/commands/version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ class Version:
99
def __init__(self, config: BaseConfig, *args):
1010
self.config: BaseConfig = config
1111
self.parameter = args[0]
12-
print(args)
1312

1413
def __call__(self):
1514
if self.parameter.get("project"):
1615
version = self.config.settings["version"]
1716
if version:
18-
out.write(f"Project Version: {__version__}")
17+
out.write(f"Project Version: {version}")
1918
else:
2019
out.error(f"No project information in this project.")
2120
else:

0 commit comments

Comments
 (0)