add option to provide config dir

This commit is contained in:
qwjyh 2024-03-06 03:49:32 +09:00
parent 24f34da588
commit 9935f79920
2 changed files with 13 additions and 4 deletions

View file

@ -12,6 +12,10 @@ pub(crate) struct Cli {
#[command(subcommand)]
pub(crate) command: Commands,
/// Customized config dir.
#[arg(short, long)]
pub(crate) config_dir: Option<PathBuf>,
#[command(flatten)]
pub(crate) verbose: Verbosity,
}