mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-01 15:00:54 +00:00
Add -v option to get version.
This commit is contained in:
parent
59b26faaba
commit
e565656865
2
installer/mac/check_for_updates.sh
Executable file
2
installer/mac/check_for_updates.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
|
4
main.cpp
4
main.cpp
@ -68,6 +68,7 @@ static void printHelp(const char *cn,FILE *out)
|
||||
fprintf(out,"Usage: %s [-switches] [home directory]"ZT_EOL_S""ZT_EOL_S,cn);
|
||||
fprintf(out,"Available switches:"ZT_EOL_S);
|
||||
fprintf(out," -h - Display this help"ZT_EOL_S);
|
||||
fprintf(out," -v - Show version"ZT_EOL_S);
|
||||
fprintf(out," -p<port> - Bind to this port for network I/O"ZT_EOL_S);
|
||||
fprintf(out," -c<port> - Bind to this port for local control packets"ZT_EOL_S);
|
||||
fprintf(out," -q - Send a query to a running service (zerotier-cli)"ZT_EOL_S);
|
||||
@ -416,6 +417,9 @@ int main(int argc,char **argv)
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
case 'v':
|
||||
printf("%s"ZT_EOL_S,Node::versionString());
|
||||
return 0;
|
||||
case 'c':
|
||||
controlPort = Utils::strToUInt(argv[i] + 2);
|
||||
if (controlPort > 65535) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user