summaryrefslogtreecommitdiff
path: root/src/cli.rs
blob: 6b1a043de34d98442b3518e78e810813186e482f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::path::PathBuf;

use clap::Parser;

#[derive(Parser, Clone)]
#[command(author, version, about, long_about = None)]
pub struct Args {
    pub dir: Option<PathBuf>,

    #[arg(short, long, default_value_t = 2)]
    pub level: u8,

    #[arg(short, long)]
    pub doc: bool,

    #[arg(long, default_value_t = true)]
    pub dry_run: bool,
}