We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d5ac22 commit 8b4d78dCopy full SHA for 8b4d78d
1 file changed
src/main.rs
@@ -12,6 +12,9 @@ struct Options {
12
#[arg(short, long, value_name = "FILE")]
13
config: Option<Utf8PathBuf>,
14
15
+ #[arg(short, long, value_name = "OUTDIR", default_value = ".")]
16
+ out_dir: Utf8PathBuf,
17
+
18
#[command(subcommand)]
19
action: Action,
20
}
@@ -64,7 +67,7 @@ fn main() -> Result<()> {
64
67
let doc = pki_playground::config::load_and_validate(&config_path)
65
68
.wrap_err(format!("Loading config from \"{}\" failed", config_path))?;
66
69
- let dir = ".".into();
70
+ let dir = opts.out_dir;
71
72
match opts.action {
73
Action::GenerateCertificateLists(action_opts) => {
0 commit comments