From fc98b48601dad7a442bd0295089a31f813c06b21 Mon Sep 17 00:00:00 2001 From: quirinecker Date: Tue, 11 Nov 2025 13:03:26 +0100 Subject: [PATCH] setting output and input is now global --- src/app/config/arguments.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/config/arguments.rs b/src/app/config/arguments.rs index 0283aeb..8ea6819 100644 --- a/src/app/config/arguments.rs +++ b/src/app/config/arguments.rs @@ -2,11 +2,11 @@ use clap::{Parser, Subcommand}; use nu_ansi_term::{AnsiGenericString, Style}; fn github_hyperlink() -> AnsiGenericString<'static, str> { - return Style::new() - .bold() - .underline() - .paint("https://github.com/quirinecker/docki") - .hyperlink("https://github.com/quirinecker/docki") + return Style::new() + .bold() + .underline() + .paint("https://github.com/quirinecker/docki") + .hyperlink("https://github.com/quirinecker/docki"); } #[derive(Parser)] @@ -15,12 +15,12 @@ pub struct Args { #[command(subcommand)] pub command: CommandArg, - /// The directory where the documentation is located - #[arg(short, long)] + /// The directory where the documentation is located + #[arg(short, long, global = true)] pub input_dir: Option, - /// The directory where the documentation will be built - #[arg(short, long)] + /// The directory where the documentation will be built + #[arg(short, long, global = true)] pub output_dir: Option, }