Exit on invalid long option.

This commit is contained in:
louib
2019-11-23 21:20:23 -05:00
parent 4f6354919b
commit d3ddd8d2ac

View File

@@ -206,6 +206,9 @@ int nwipe_options_parse( int argc, char** argv )
exit( EINVAL );
}
/* getopt_long should raise on invalid option, so we should never get here. */
exit( EINVAL );
case 'm': /* Method option. */
if( strcmp( optarg, "dod522022m" ) == 0 || strcmp( optarg, "dod" ) == 0 )