• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use clap::Parser;
2 
3 #[derive(Parser)]
4 #[command(author, version, about, long_about = None)]
5 #[command(next_line_help = true)]
6 struct Cli {
7     #[arg(long)]
8     two: String,
9     #[arg(long)]
10     one: String,
11 }
12 
main()13 fn main() {
14     let cli = Cli::parse();
15 
16     println!("two: {:?}", cli.two);
17     println!("one: {:?}", cli.one);
18 }
19