diff --git a/src/cli.rs b/src/cli.rs index fed50af..31d831e 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -36,7 +36,7 @@ const HELP_TEMPLATE: &str = "\ //#[clap(author, version, about, long_about = None)] #[derive(Parser, Debug)] #[clap( - name="seidr - git gut", + name="seidr - declarative linkfarm", author, version, long_version=env!("CARGO_PKG_VERSION"), @@ -72,6 +72,14 @@ pub struct Args { #[arg(short, long)] pub no_emoji: bool, + /// (not imlemented) + #[arg(short, long)] + pub unlink: bool, + + /// (not imlemented) + #[arg(short, long)] + pub force: bool, + #[arg(short, long)] pub message: Option, diff --git a/src/main.rs b/src/main.rs index 960b401..649c16d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,6 +72,8 @@ fn main() { args if args.code_of_conduct => println!("{}", utils::strings::INTERACTIVE_COC), args if args.quiet => settings::QUIET.store(true, Ordering::Relaxed), args if args.no_emoji => settings::EMOJIS.store(true, Ordering::Relaxed), + args if args.unlink => settings::UNLINK.store(true, Ordering::Relaxed), + args if args.force => settings::FORCE.store(true, Ordering::Relaxed), args if args.message.is_some() => message_input = args.message.clone().unwrap(), _ => (), } diff --git a/src/settings.rs b/src/settings.rs index fda53d7..84cd8a6 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -3,3 +3,7 @@ use std::sync::atomic::AtomicBool; pub static QUIET: AtomicBool = AtomicBool::new(false); pub static EMOJIS: AtomicBool = AtomicBool::new(false); + +pub static UNLINK: AtomicBool = AtomicBool::new(false); + +pub static FORCE: AtomicBool = AtomicBool::new(false);