Use DirPath for output of rage-keygen as overwriting is not allowed

This commit is contained in:
Stefan Gehr 2024-08-28 10:41:14 +02:00
parent 26ebfbfc88
commit 5eb44a157e
No known key found for this signature in database

View file

@ -36,7 +36,7 @@ pub(crate) struct AgeOptions {
#[arg(short, long)]
#[arg(value_name = fl!("output"))]
#[arg(help = fl!("keygen-help-flag-output"))]
#[arg(value_hint = ValueHint::AnyPath)]
#[arg(value_hint = ValueHint::DirPath)]
pub(crate) output: Option<String>,
#[arg(short = 'y')]