lx_cli/
cli.rs

1/// Defines CLI arguments using `clap`.
2use clap::Parser;
3
4#[derive(Parser, Debug)]
5#[command(author, version, about, long_about = None)]
6pub struct Args {
7    #[arg(default_value = ".")]
8    pub target: String,
9
10    #[arg(short, long, help = "Use a long listing format")]
11    pub long: bool,
12
13    #[arg(
14        short = 'a',
15        long = "all",
16        help = "Show all files, including hidden ones"
17    )]
18    pub show_hidden: bool,
19}