getopts icon indicating copy to clipboard operation
getopts copied to clipboard

-- separator

Open piegamesde opened this issue 1 year ago • 1 comments

In many CLI parsers, it is a common convention to use -- as a special argument which will force all subsequent arguments to be read as positional/"free". After a quick glance at documentation and code of this crate, I could not find any information on this. How does this crate currently handle the presence of -- options? If it doesn't then consider this a feature request.

piegamesde avatar Feb 03 '24 11:02 piegamesde

it's been added in https://github.com/rust-lang/getopts/pull/100 but no updated version since then's been published, so 0.2.21 that you see on crates dot io, is from 5 years ago and doesn't have it in.

possibly not published yet due to the need to ensure it doesn't break anything:

The getopts library is used by rustc, so we have to be careful about not changing its behavior.

correabuscar avatar Jul 06 '24 11:07 correabuscar