Skip to content

Commit 8b4d78d

Browse files
committed
Allow callers to specify where output is written
1 parent 9d5ac22 commit 8b4d78d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ struct Options {
1212
#[arg(short, long, value_name = "FILE")]
1313
config: Option<Utf8PathBuf>,
1414

15+
#[arg(short, long, value_name = "OUTDIR", default_value = ".")]
16+
out_dir: Utf8PathBuf,
17+
1518
#[command(subcommand)]
1619
action: Action,
1720
}
@@ -64,7 +67,7 @@ fn main() -> Result<()> {
6467
let doc = pki_playground::config::load_and_validate(&config_path)
6568
.wrap_err(format!("Loading config from \"{}\" failed", config_path))?;
6669

67-
let dir = ".".into();
70+
let dir = opts.out_dir;
6871

6972
match opts.action {
7073
Action::GenerateCertificateLists(action_opts) => {

0 commit comments

Comments
 (0)