Skip to content

Commit 404c32c

Browse files
committed
If no args is provided quit
1 parent 7e9718a commit 404c32c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/nmqtt_password.nim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ proc deleteUserToFile(filename, username: string) =
5353

5454
proc nmqttPassword(adduser=false, batch=false, deluser=false, args: seq[string]) =
5555
## Main handler
56+
57+
if args.len() == 0:
58+
echo "Error, missing parameters. Run again with --help."
59+
quit()
60+
5661
echo """
5762
nmqtt_broker v$1
5863

0 commit comments

Comments
 (0)