diff options
author | Pablo Hinojosa <pablohn6@gmail.com> | 2018-03-11 03:39:13 +0100 |
---|---|---|
committer | Pablo Hinojosa <pablohn6@gmail.com> | 2018-03-11 03:39:13 +0100 |
commit | a9778549f2a9b9a6c410516fae7d89f20ebe3e94 (patch) | |
tree | 723bfe5e41ced7261a1f1e7e3be98dd607ed0948 /one.cpp | |
parent | e57d0fdccc78b01e93360245fd2a9c7b87214b34 (diff) | |
download | infinitytier-a9778549f2a9b9a6c410516fae7d89f20ebe3e94.tar.gz infinitytier-a9778549f2a9b9a6c410516fae7d89f20ebe3e94.zip |
Warn about invalid network id instead of help
Diffstat (limited to 'one.cpp')
-rw-r--r-- | one.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -443,7 +443,7 @@ static int cli(int argc,char **argv) } } else if (command == "join") { if (arg1.length() != 16) { - cliPrintHelp(argv[0],stderr); + printf("invalid network id" ZT_EOL_S); return 2; } requestHeaders["Content-Type"] = "application/json"; @@ -471,7 +471,7 @@ static int cli(int argc,char **argv) } } else if (command == "leave") { if (arg1.length() != 16) { - cliPrintHelp(argv[0],stderr); + printf("invalid network id" ZT_EOL_S); return 2; } unsigned int scode = Http::DEL( @@ -564,7 +564,7 @@ static int cli(int argc,char **argv) } } else if (command == "set") { if (arg1.length() != 16) { - cliPrintHelp(argv[0],stderr); + printf("invalid network id" ZT_EOL_S); return 2; } std::size_t eqidx = arg2.find('='); |