Skip to content

Commit dca2d7a

Browse files
committed
Versioning with branch name
1 parent 33b21cb commit dca2d7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ def get_creation_data(mnemonic, seed, json, json_password):
107107

108108
def version_callback(value: bool):
109109
if value:
110-
typer.echo(f"BTCLI Version: {__version__}/{Repo('.').active_branch.name}")
110+
typer.echo(
111+
f"BTCLI Version: {__version__}/{Repo(os.path.dirname(__file__)).active_branch.name}"
112+
)
111113
raise typer.Exit()
112114

113115

0 commit comments

Comments
 (0)