Issue #12135 has been updated by Nobuyoshi Nakada.

Description updated
Status changed from Open to Feedback

What is "C's OptParse"?

----------------------------------------
Bug #12135: OptParse rejects --longopt= with a zero-length argument.
https://bugs.ruby-lang.org/issues/12135#change-57245

* Author: Tim Baverstock
* Status: Feedback
* Priority: Normal
* Assignee: 
* ruby -v: 2.1.5 and 2.4.0
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
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=
~~~



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>