summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
new file mode 100644
index 0000000..6b1a043
--- /dev/null
+++ b/src/cli.rs
@@ -0,0 +1,18 @@
1use std::path::PathBuf;
2
3use clap::Parser;
4
5#[derive(Parser, Clone)]
6#[command(author, version, about, long_about = None)]
7pub struct Args {
8 pub dir: Option<PathBuf>,
9
10 #[arg(short, long, default_value_t = 2)]
11 pub level: u8,
12
13 #[arg(short, long)]
14 pub doc: bool,
15
16 #[arg(long, default_value_t = true)]
17 pub dry_run: bool,
18}