Skip to content

Commit 88c0f52

Browse files
committed
Update CLI output for nmqtt
1 parent ab2f348 commit 88c0f52

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/nmqtt.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ when defined(broker):
7171
sequtils,
7272
times,
7373
random,
74-
utils/passwords
74+
utils/passwords,
75+
utils/version
7576
from parsecfg import loadConfig, getSectionValue
7677
from os import fileExists
7778

src/utils/broker.nim

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ proc showConf(mb: MqttBroker, configfile: string) =
7878
## Show the config details
7979

8080
echo """
81-
nmqtt_broker v$1
82-
83-
Running nmqtt_broker - MQTT broker
81+
Running nmqtt v$1
8482
8583
BROKER:
8684
Host: $2
@@ -98,7 +96,7 @@ OPTIONS:
9896
Client kick old: $12
9997
Number of passwords: $13
10098
101-
""".format("x.x.x", mb.host, mb.port, "NOT IMPLEMENTED", now(), mb.verbosity,
99+
""".format(nmqttVersion, mb.host, mb.port, mb.sslOn, now(), mb.verbosity,
102100
mb.maxConnections, mb.clientIdMaxLen, mb.spacesInClientId,
103101
mb.emptyClientId, mb.passClientId, mb.clientKickOld, mb.passwords.len()
104102
)

0 commit comments

Comments
 (0)