Skip to content

Commit

Permalink
Rename --config-path to --config
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed Nov 6, 2023
1 parent 152f4dd commit 1541878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions certifier/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct Cli {
default_value = "config.yml",
env("CERTIFIER_CONFIG_PATH")
)]
config_path: PathBuf,
config: PathBuf,

#[command(subcommand)]
cmd: Option<Commands>,
Expand Down Expand Up @@ -67,7 +67,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.finish();
tracing::subscriber::set_global_default(subscriber)?;

let config = certifier::configuration::get_configuration(&args.config_path)?;
let config = certifier::configuration::get_configuration(&args.config)?;
let signer = SigningKey::from_bytes(&config.signing_key);
let pubkey_b64 = general_purpose::STANDARD.encode(signer.verifying_key().as_bytes());

Expand Down

0 comments on commit 1541878

Please sign in to comment.