Merge pull request #754 from g-oikonomou/bugfix/macos-getopt
Change help messages to specify the -v argument as non-optional
This commit is contained in:
commit
c9c3befb50
@ -142,14 +142,20 @@ slip_config_handle_arguments(int argc, char **argv)
|
||||
fprintf(stderr, " -a host Connect via TCP to server at <host>\n");
|
||||
fprintf(stderr, " -p port Connect via TCP to server at <host>:<port>\n");
|
||||
fprintf(stderr, " -t tundev Name of interface (default tun0)\n");
|
||||
#ifdef __APPLE__
|
||||
fprintf(stderr, " -v level Verbosity level\n");
|
||||
#else
|
||||
fprintf(stderr, " -v[level] Verbosity level\n");
|
||||
#endif
|
||||
fprintf(stderr, " -v0 No messages\n");
|
||||
fprintf(stderr, " -v1 Encapsulated SLIP debug messages (default)\n");
|
||||
fprintf(stderr, " -v2 Printable strings after they are received\n");
|
||||
fprintf(stderr, " -v3 Printable strings and SLIP packet notifications\n");
|
||||
fprintf(stderr, " -v4 All printable characters as they are received\n");
|
||||
fprintf(stderr, " -v5 All SLIP packets in hex\n");
|
||||
#ifndef __APPLE__
|
||||
fprintf(stderr, " -v Equivalent to -v3\n");
|
||||
#endif
|
||||
fprintf(stderr, " -d[basedelay] Minimum delay between outgoing SLIP packets.\n");
|
||||
fprintf(stderr, " Actual delay is basedelay*(#6LowPAN fragments) milliseconds.\n");
|
||||
fprintf(stderr, " -d is equivalent to -d10.\n");
|
||||
|
@ -856,14 +856,20 @@ fprintf(stderr," -s siodev Serial device (default /dev/ttyUSB0)\n");
|
||||
fprintf(stderr," -M Interface MTU (default and min: 1280)\n");
|
||||
fprintf(stderr," -T Make tap interface (default is tun interface)\n");
|
||||
fprintf(stderr," -t tundev Name of interface (default tap0 or tun0)\n");
|
||||
#ifdef __APPLE__
|
||||
fprintf(stderr," -v level Verbosity level\n");
|
||||
#else
|
||||
fprintf(stderr," -v[level] Verbosity level\n");
|
||||
#endif
|
||||
fprintf(stderr," -v0 No messages\n");
|
||||
fprintf(stderr," -v1 Encapsulated SLIP debug messages (default)\n");
|
||||
fprintf(stderr," -v2 Printable strings after they are received\n");
|
||||
fprintf(stderr," -v3 Printable strings and SLIP packet notifications\n");
|
||||
fprintf(stderr," -v4 All printable characters as they are received\n");
|
||||
fprintf(stderr," -v5 All SLIP packets in hex\n");
|
||||
#ifndef __APPLE__
|
||||
fprintf(stderr," -v Equivalent to -v3\n");
|
||||
#endif
|
||||
fprintf(stderr," -d[basedelay] Minimum delay between outgoing SLIP packets.\n");
|
||||
fprintf(stderr," Actual delay is basedelay*(#6LowPAN fragments) milliseconds.\n");
|
||||
fprintf(stderr," -d is equivalent to -d10.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user