"Tom Spear" speeddymon@gmail.com writes:
--- programs/regedit/regedit.c.old 2007-04-25 11:53:24.000000000 -0500 +++ programs/regedit/regedit.c 2007-04-25 11:57:30.000000000 -0500 @@ -104,13 +104,10 @@ case 'E': action = ACTION_EXPORT; break;
case '?':
default: fprintf(stderr,usage); exit(0); break;
default:
error_unknown_switch(chu, s);
break;
You don't want to do that, even if you print usage, an invalid switch needs to cause an error.