Skip to content

Commit 74f6721

Browse files
Pluralizes multi-arguments option audience to audiences (#1186)
* Pluralizes multi-arguments option audience to audiences * Adjust variable name jwtAudiencesOption with the plural name --------- Co-authored-by: Waldek Mastykarz <waldek@mastykarz.nl>
1 parent 1252545 commit 74f6721

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev-proxy/ProxyHost.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ private static Command CreateJwtCreateCommand()
416416
var jwtNameOption = new Option<string>("--name", "The name of the user to create the token for.");
417417
jwtNameOption.AddAlias("-n");
418418

419-
var jwtAudienceOption = new Option<IEnumerable<string>>("--audience", "The audiences to create the token for. Specify once for each audience")
419+
var jwtAudiencesOption = new Option<IEnumerable<string>>("--audiences", "The audiences to create the token for. Specify once for each audience")
420420
{
421421
AllowMultipleArgumentsPerToken = true
422422
};
423-
jwtAudienceOption.AddAlias("-a");
423+
jwtAudiencesOption.AddAlias("-a");
424424

425425
var jwtIssuerOption = new Option<string>("--issuer", "The issuer of the token.");
426426
jwtIssuerOption.AddAlias("-i");
@@ -494,7 +494,7 @@ private static Command CreateJwtCreateCommand()
494494
JwtCommandHandler.GetToken,
495495
new JwtBinder(
496496
jwtNameOption,
497-
jwtAudienceOption,
497+
jwtAudiencesOption,
498498
jwtIssuerOption,
499499
jwtRolesOption,
500500
jwtScopesOption,
@@ -507,7 +507,7 @@ private static Command CreateJwtCreateCommand()
507507
var sortedOptions = new Option[]
508508
{
509509
jwtNameOption,
510-
jwtAudienceOption,
510+
jwtAudiencesOption,
511511
jwtIssuerOption,
512512
jwtRolesOption,
513513
jwtScopesOption,

0 commit comments

Comments
 (0)