From 3dca12a3447bb0bfaab1a95661c080082a2ed7d2 Mon Sep 17 00:00:00 2001 From: Artem Azaraev Date: Thu, 15 May 2025 20:55:26 +0300 Subject: [PATCH 1/2] Pluralizes multi-arguments option audience to audiences --- dev-proxy/ProxyHost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-proxy/ProxyHost.cs b/dev-proxy/ProxyHost.cs index 87904119..f0ad12c9 100755 --- a/dev-proxy/ProxyHost.cs +++ b/dev-proxy/ProxyHost.cs @@ -416,7 +416,7 @@ private static Command CreateJwtCreateCommand() var jwtNameOption = new Option("--name", "The name of the user to create the token for."); jwtNameOption.AddAlias("-n"); - var jwtAudienceOption = new Option>("--audience", "The audiences to create the token for. Specify once for each audience") + var jwtAudienceOption = new Option>("--audiences", "The audiences to create the token for. Specify once for each audience") { AllowMultipleArgumentsPerToken = true }; From dcc6a1cfa5c3f8ee07b17abd654498b004bcca20 Mon Sep 17 00:00:00 2001 From: Artem Azaraev Date: Fri, 16 May 2025 11:04:05 +0300 Subject: [PATCH 2/2] Adjust variable name jwtAudiencesOption with the plural name --- dev-proxy/ProxyHost.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev-proxy/ProxyHost.cs b/dev-proxy/ProxyHost.cs index f0ad12c9..c48018ba 100755 --- a/dev-proxy/ProxyHost.cs +++ b/dev-proxy/ProxyHost.cs @@ -416,11 +416,11 @@ private static Command CreateJwtCreateCommand() var jwtNameOption = new Option("--name", "The name of the user to create the token for."); jwtNameOption.AddAlias("-n"); - var jwtAudienceOption = new Option>("--audiences", "The audiences to create the token for. Specify once for each audience") + var jwtAudiencesOption = new Option>("--audiences", "The audiences to create the token for. Specify once for each audience") { AllowMultipleArgumentsPerToken = true }; - jwtAudienceOption.AddAlias("-a"); + jwtAudiencesOption.AddAlias("-a"); var jwtIssuerOption = new Option("--issuer", "The issuer of the token."); jwtIssuerOption.AddAlias("-i"); @@ -494,7 +494,7 @@ private static Command CreateJwtCreateCommand() JwtCommandHandler.GetToken, new JwtBinder( jwtNameOption, - jwtAudienceOption, + jwtAudiencesOption, jwtIssuerOption, jwtRolesOption, jwtScopesOption, @@ -507,7 +507,7 @@ private static Command CreateJwtCreateCommand() var sortedOptions = new Option[] { jwtNameOption, - jwtAudienceOption, + jwtAudiencesOption, jwtIssuerOption, jwtRolesOption, jwtScopesOption,