getopts icon indicating copy to clipboard operation
getopts copied to clipboard

The getopts repo maintained by the rust-lang project

Results 14 getopts issues
Sort by recently updated
recently updated
newest added

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...

Currently getopts doesn't complain when multiple options have the same short/long option names. But these case are always mistakes because when one option uses some option name, other options which...

Currently all options' short/long names, description, and hint are allocated on heap memory when building `OptGroup` instance. However, in almost all cases, they are given as `&'static str` so those...

When building `rust-getopts` with tests enabled on Guix, I got the following error message: ``` Running .guix-tests/smoke running 1 test test main ... FAILED failures: ---- main stdout ---- thread...

As of Rust 1.36, those versions don't compile. This was fixed for 0.2.17 by #61. I think it would be useful to yank those versions for `cargo update -Z minimal-versions`...

I tried to add a `--help` flag with `optflag` and a required option. I expected `my_command --help` worked, but it didn't because `Options::parse()` failed due to the lack of the...

Occasionally I want to have undocumented/hidden options that do not appear in the --help list, either due to experimental status, or deprecation. I was wondering if this is currently possible,...

I've bumped into some weird behaviour in another project whereas the use of an `optflagopt` option seemed to render unexpected behaviour of the option not being properly parsed. I decided...

See https://github.com/samuela/rustybox/pull/32#discussion_r445116643. This has been a factor in https://github.com/uutils/coreutils migrating from getopts to clap.

help wanted