From 371a77a994aeb0beae53f24a0edbf99d70133c33 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Wed, 14 Aug 2024 23:51:43 +0200 Subject: add basic arguments --- src/cli.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/cli.rs (limited to 'src/cli.rs') 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 @@ +use std::path::PathBuf; + +use clap::Parser; + +#[derive(Parser, Clone)] +#[command(author, version, about, long_about = None)] +pub struct Args { + pub dir: Option, + + #[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, +} -- cgit v1.2.3