Clap: multiple_values() documentation wrong

Created on 16 Apr 2020  路  3Comments  路  Source: clap-rs/clap

Clap version

master branch (d210b9fcedba48c997e8e83ce06f0c18dacb8d55)

Where

https://github.com/clap-rs/clap/blob/master/src/build/arg/mod.rs#L3729-L3777

What's wrong

The Arg::multiple_values() method doc talks about empty values instead (?!) is this a copy-paste error?

/// Allows an argument to accept explicitly empty values. An empty value must be specified at
/// the command line with an explicit `""`, `''`, or `--option=`

PS: I also find the distinction between MultipleValues and MultipleOccurrences very confusing and not well documented, I don't understand enough to do it myself.

docs

Most helpful comment

I've started a branch (v3-docs) where I'm trying to go through and finally knock out some of these docs issues and update all the examples and such.

All 3 comments

There's another issue for that #1026

I've started a branch (v3-docs) where I'm trying to go through and finally knock out some of these docs issues and update all the examples and such.

@kbknapp Thanks. Just wanted to let you know that I am working on updating the README.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lu-zero picture lu-zero  路  5Comments

BurntSushi picture BurntSushi  路  5Comments

AdamNiederer picture AdamNiederer  路  3Comments

chevdor picture chevdor  路  3Comments

laishulu picture laishulu  路  3Comments