Skip to content

Commit

Permalink
[testclient] Add short name for parameter (#14254)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhiwubigdata committed Feb 13, 2022
1 parent eca563e commit d5c1271
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,12 @@ private class GrantSubscriptionPermissions extends CliCommand {
@Parameter(description = "tenant/namespace", required = true)
private java.util.List<String> params;

@Parameter(names = "--subscription",
@Parameter(names = {"-s", "--subscription"},
description = "Subscription name for which permission will be granted to roles", required = true)
private String subscription;

@Parameter(names = "--roles", description = "Client roles to which grant permissions (comma separated roles)",
@Parameter(names = {"-rs", "--roles"},
description = "Client roles to which grant permissions (comma separated roles)",
required = true, splitter = CommaParameterSplitter.class)
private List<String> roles;

Expand All @@ -274,11 +275,12 @@ private class RevokeSubscriptionPermissions extends CliCommand {
@Parameter(description = "tenant/namespace", required = true)
private java.util.List<String> params;

@Parameter(names = "--subscription", description = "Subscription name for which permission "
@Parameter(names = {"-s", "--subscription"}, description = "Subscription name for which permission "
+ "will be revoked to roles", required = true)
private String subscription;

@Parameter(names = "--role", description = "Client role to which revoke permissions", required = true)
@Parameter(names = {"-r", "--role"},
description = "Client role to which revoke permissions", required = true)
private String role;

@Override
Expand Down

0 comments on commit d5c1271

Please sign in to comment.