Skip to content

Commit 624aef0

Browse files
authored
fix: arg name and error print (#1118)
1 parent 4adf285 commit 624aef0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cli.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ pub struct Options {
367367
#[derive(Parser, Debug)]
368368
pub struct OidcConfig {
369369
#[arg(
370-
long = "oidc-client-id",
370+
long = "oidc-client",
371+
name = "oidc-client",
371372
env = "P_OIDC_CLIENT_ID",
372373
required = false,
373374
help = "Client id for OIDC provider"
@@ -376,6 +377,7 @@ pub struct OidcConfig {
376377

377378
#[arg(
378379
long = "oidc-client-secret",
380+
name = "oidc-client-secret",
379381
env = "P_OIDC_CLIENT_SECRET",
380382
required = false,
381383
help = "Client secret for OIDC provider"
@@ -384,6 +386,7 @@ pub struct OidcConfig {
384386

385387
#[arg(
386388
long = "oidc-issuer",
389+
name = "oidc-issuer",
387390
env = "P_OIDC_ISSUER",
388391
required = false,
389392
value_parser = validation::url,

0 commit comments

Comments
 (0)