[Client] Add -h option
This commit is contained in:
parent
e992159810
commit
6ce8d695b0
|
@ -20,7 +20,7 @@
|
|||
#define DEFAULT_DELAY_NORMAL 25000 // Localisation request
|
||||
|
||||
/* Program arguments (getopt string) */
|
||||
#define OPTIONS "d:i:l::n:p:t:"
|
||||
#define OPTIONS "d:hi:l::n:p:t:"
|
||||
|
||||
|
||||
/* Function headers */
|
||||
|
@ -229,6 +229,9 @@ void parse_main_options(int argc, char **argv)
|
|||
case 'd' :
|
||||
strncpy(options.dest_ip, optarg, 16) ;
|
||||
break ;
|
||||
case 'h' :
|
||||
print_usage() ;
|
||||
exit(0) ;
|
||||
case 'i' :
|
||||
strncpy(options.iface, optarg, IFNAMSIZ + 1) ;
|
||||
break ;
|
||||
|
@ -391,6 +394,7 @@ void print_usage()
|
|||
" direction x y z\n"
|
||||
"\n"
|
||||
"Options:\n"
|
||||
"\t-h\t\tPrint this help.\n"
|
||||
"\t-d dest_ip\tDestination IP address of the localisation request.\n"
|
||||
"\t-p dest_port\tDestination port of the localisation request"
|
||||
" (default: %d).\n"
|
||||
|
|
Loading…
Reference in New Issue