Project

General

Profile

Bug #12135

Updated by nobu (Nobuyoshi Nakada) about 8 years ago

OptParse diverges from C's OptParse by rejecting a zero-length argument given to a long option. 

 C accepts it: 

 ~~~ 
 $ ./a.out --delete= 
 option delete with arg '' 
 ~~~ 

 Ruby fails: 

 ~~~ 
 OptionParser::InvalidArgument: invalid argument: --filters= 
 ~~~

Back