Skip to content
Snippets Groups Projects
Commit 43d4b328 authored by Moul's avatar Moul
Browse files

[fix] version number wasn't displayed.

parent 1833da00
No related branches found
No related tags found
No related merge requests found
...@@ -60,11 +60,11 @@ def cli(): ...@@ -60,11 +60,11 @@ def cli():
# ep: endpoint, node's network interface # ep: endpoint, node's network interface
ep, c = dict(), Command() ep, c = dict(), Command()
subcmd = ["info", "diffi", "network", "issuers", "argos", "amount", "transaction", "generate_auth_file", "id"] subcmd = ["info", "diffi", "network", "issuers", "argos", "amount", "transaction", "generate_auth_file", "id"]
if c.is_help_request() or c.is_usage_request() or c.subcmd not in subcmd:
usage()
if c.is_version_request(): if c.is_version_request():
print("silkaj 0.2.0") print("silkaj 0.2.0")
sys.exit() sys.exit()
if c.is_help_request() or c.is_usage_request() or c.subcmd not in subcmd:
usage()
ep["domain"], ep["port"] = "duniter.org", "10901" ep["domain"], ep["port"] = "duniter.org", "10901"
try: try:
ep["domain"], ep["port"] = c.get_definition('p').rsplit(':', 1) ep["domain"], ep["port"] = c.get_definition('p').rsplit(':', 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment