xref: /third_party/rust/crates/clap/src/bin/stdio-fixture.rs
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/rust/crates/clap/src/bin/
119625d8cSopenharmony_cifn main() {
219625d8cSopenharmony_ci    let cmd = clap::Command::new("stdio-fixture")
319625d8cSopenharmony_ci        .version("1.0")
419625d8cSopenharmony_ci        .long_version("1.0 - a2132c")
519625d8cSopenharmony_ci        .arg_required_else_help(true)
619625d8cSopenharmony_ci        .subcommand(clap::Command::new("more"))
719625d8cSopenharmony_ci        .arg(
819625d8cSopenharmony_ci            clap::Arg::new("verbose")
919625d8cSopenharmony_ci                .long("verbose")
1019625d8cSopenharmony_ci                .help("log")
1119625d8cSopenharmony_ci                .action(clap::ArgAction::SetTrue)
1219625d8cSopenharmony_ci                .long_help("more log"),
1319625d8cSopenharmony_ci        );
1419625d8cSopenharmony_ci    cmd.get_matches();
1519625d8cSopenharmony_ci}
16

Indexes created Thu Nov 07 10:32:03 CST 2024