Skip to content

Commit 2670952

Browse files
committed
better description in version
1 parent 0e75620 commit 2670952

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/meshcore_cli/meshcore_cli.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from meshcore import MeshCore, EventType, logger
2323

2424
# Version
25-
VERSION = "0.7.5"
25+
VERSION = "v0.7.5"
2626

2727
# default ble address is stored in a config file
2828
MCCLI_CONFIG_DIR = str(Path.home()) + "/.config/meshcore/"
@@ -1358,6 +1358,9 @@ async def process_script(mc, file, json_output=False):
13581358
cmds = shlex.split(line[:-1])
13591359
await process_cmds(mc, cmds, json_output)
13601360

1361+
def version():
1362+
print (f"meshcore-cli: command line interface to MeshCore companion radios {VERSION}")
1363+
13611364
def command_help():
13621365
print(""" General commands
13631366
chat : enter the chat (interactive) mode
@@ -1403,8 +1406,8 @@ def command_help():
14031406

14041407
def usage () :
14051408
""" Prints some help """
1406-
print("""meshcore-cli : CLI interface to MeschCore BLE companion app
1407-
1409+
version()
1410+
print("""
14081411
Usage : meshcore-cli <args> <commands>
14091412
14101413
Arguments :
@@ -1467,7 +1470,7 @@ async def main(argv):
14671470
case "-T" :
14681471
timeout = float(arg)
14691472
case "-v":
1470-
print (f"meshcore-cli: command line interface to MeshCore version {VERSION}")
1473+
version()
14711474
return
14721475
case "-l" :
14731476
devices = await BleakScanner.discover(timeout=timeout)

0 commit comments

Comments
 (0)