Allow overriding args

master
Wynd 2024-12-12 10:41:54 +02:00
parent 2603c046f6
commit 36c18008a0
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ use clap::{arg, Parser, ValueHint};
use crate::heatmap::{ColorLogic, Format, HeatmapColors};
#[derive(Clone, Debug, Parser, PartialEq, Eq)]
#[command(version, about, author, long_about = None)]
#[command(version, about, author, long_about = None, args_override_self = true)]
pub struct CliArgs {
#[arg(long("root-dir"), value_hint = ValueHint::DirPath)]
pub root_dir: Option<PathBuf>,