1use clap::Parser;
2
3#[derive(Parser)]
4#[command(author, version, about, long_about = None)]
5struct Cli {
6 #[arg(default_value_t = 2020)]
7 port: u16,
8}
9
10fn main() {
11 let cli = Cli::parse();
12
13 println!("port: {:?}", cli.port);
14}
15