mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
Merge pull request #137 from louib/exit_invalid_option
Exit on invalid long option.
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user