/*
* Get and parse command line options
*/
- while ((ch = getopt(argc, argv, "df:L:")) != -1) {
+ while ((ch = getopt(argc, argv, "hdf:L:")) != -1) {
switch (ch) {
+ case 'h':
+ usage();
+ break;
case 'd':
debug++;
break;
#ifdef ENABLE_LISTENVLAN
"v"
#endif
- "kdxX:m:p:M:i@ ";
+ "hkdxX:m:p:M:i@ ";
int i, found, advertise_version = 1;
#ifdef ENABLE_LISTENVLAN
int vlan = 0;
*popt = '\0';
while ((ch = getopt(argc, argv, opts)) != -1) {
switch (ch) {
+ case 'h':
+ usage();
+ break;
#ifdef ENABLE_LISTENVLAN
case 'v':
vlan = 1;