commander-rb / commander

The complete solution for Ruby command-line executables
MIT License
822 stars 74 forks source link

-- #75

Closed badeball closed 4 years ago

badeball commented 5 years ago

Double dash as described in https://github.com/tj/commander/issues/34, seems to be broken after 4.4.0, specifically after https://github.com/commander-rb/commander/commit/420ffa9.

The mentioned example yields -x as an option rather than argument, when used in conjunction with double dash.

Additionally, it fails to parse EG. ruby test.rb foo -- --foo.

ggilder commented 4 years ago

Somehow I missed this issue... I just tried the test case you mentioned and the behavior does seem to be broken. It appears that it was working with version 4.3.0, so I'll take a look and see if I can figure out where this regressed. Thanks for reporting this issue, and sorry for taking so long to notice it!

ggilder commented 4 years ago

Breaks between 4.3.8 and 4.4.0; possible commits breaking this are f64289b, 38a5817, 420ffa9, 9740771

ggilder commented 4 years ago

Fixed in version 4.5.0 (just released).