chiark / gitweb /
clap: Use ArgAction::Append
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Jun 2023 19:09:15 +0000 (20:09 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 15 Jun 2023 20:15:29 +0000 (21:15 +0100)
commit3e8235469d4c58d4bb4ba2ed22431c192ac673f4
tree912d67ddc1fbd565cda477556c7708d094bb1de6
parent571dec444281d8e0ed7e706722ce8c3e776314b9
clap: Use ArgAction::Append

Gets rid of this 3 to 4 deprecation warning.

The warning's suggestion to use "multiple_occurrences" seems wrong
since that is also deprecated ?!  It links to Arg::action, and
emprically this construction DTRT.

    warning: use of deprecated method `clap::Arg::<'help>::multiple`: Split into `Arg::multiple_occurrences` (most likely what you want)  and `Arg::multiple_values`
      --> src/config.rs:89:16
       |
    89 |   #[clap(long, multiple=true, number_of_values=1)]
       |                ^^^^^^^^
       |
       = note: `#[warn(deprecated)]` on by default

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/config.rs