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
20    #[arg(short = '1', help = "Force single column output")]
21    pub one_per_line: bool,
22
23    #[arg(
24        short = 'r',
25        long = "recursive",
26        help = "Show directory tree recursively"
27    )]
28    pub recursive: bool,
29}