rust-lang / libs-team

The home of the library team
Apache License 2.0
115 stars 18 forks source link

Parse agenda-generator args using clap instead of structopt #301

Closed dtolnay closed 9 months ago

dtolnay commented 9 months ago

structopt has been deprecated in favor of the derive macros built into the new versions of clap.


Before:

$ cargo run -- --help
fully-automatic-rust-libs-team-triage-meeting-agenda-generator 0.1.0

USAGE:
    fully-automatic-rust-libs-team-triage-meeting-agenda-generator [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -a, --agenda <agenda>     [default: LibsAPI]  [possible values: Libs, LibsAPI, PGEH]

After:

$ cargo run -- --help
Usage: fully-automatic-rust-libs-team-triage-meeting-agenda-generator [OPTIONS]

Options:
  -a, --agenda <AGENDA>  [default: LibsAPI] [possible values: Libs, LibsAPI, PGEH]
  -h, --help             Print help