setting output and input is now global
This commit is contained in:
@@ -2,11 +2,11 @@ use clap::{Parser, Subcommand};
|
|||||||
use nu_ansi_term::{AnsiGenericString, Style};
|
use nu_ansi_term::{AnsiGenericString, Style};
|
||||||
|
|
||||||
fn github_hyperlink() -> AnsiGenericString<'static, str> {
|
fn github_hyperlink() -> AnsiGenericString<'static, str> {
|
||||||
return Style::new()
|
return Style::new()
|
||||||
.bold()
|
.bold()
|
||||||
.underline()
|
.underline()
|
||||||
.paint("https://github.com/quirinecker/docki")
|
.paint("https://github.com/quirinecker/docki")
|
||||||
.hyperlink("https://github.com/quirinecker/docki")
|
.hyperlink("https://github.com/quirinecker/docki");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
@@ -15,12 +15,12 @@ pub struct Args {
|
|||||||
#[command(subcommand)]
|
#[command(subcommand)]
|
||||||
pub command: CommandArg,
|
pub command: CommandArg,
|
||||||
|
|
||||||
/// The directory where the documentation is located
|
/// The directory where the documentation is located
|
||||||
#[arg(short, long)]
|
#[arg(short, long, global = true)]
|
||||||
pub input_dir: Option<String>,
|
pub input_dir: Option<String>,
|
||||||
|
|
||||||
/// The directory where the documentation will be built
|
/// The directory where the documentation will be built
|
||||||
#[arg(short, long)]
|
#[arg(short, long, global = true)]
|
||||||
pub output_dir: Option<String>,
|
pub output_dir: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user