summaryrefslogblamecommitdiff
path: root/src/cli.rs
blob: b0ec61bc68f6bf0b9952ef45214abc083d4ccdc9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                     
                
                      



                                                             
 
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)]
    pub dry_run: bool,

    #[cfg(all(feature = "ext-cargo", feature = "int-cargo"))]
    #[arg(long)]
    pub ext_cargo: bool,
}