ListGroups: Allow -s as an alias of --suggest

Change-Id: I2d0d7dcd8677f3d8beed06d27c01aaf633f5ecd6
This commit is contained in:
David Pursehouse 2016-02-18 14:21:20 +09:00
parent 76992c66e6
commit 9b9bdec6e9
2 changed files with 5 additions and 5 deletions

View File

@ -174,13 +174,12 @@ Query 25 groups starting from index 50.
[[suggest-group]] [[suggest-group]]
==== Suggest Group ==== Suggest Group
The `suggest` option indicates a user-entered string that The `suggest` or `s` option indicates a user-entered string that
should be auto-completed to group names. should be auto-completed to group names.
If this option is set and `n` is not set, then `n` defaults to 10. If this option is set and `n` is not set, then `n` defaults to 10.
When using this option, When using this option, the `project` or `p` option can be used to
the `project` or `p` option can be used to name the current project, name the current project, to allow context-dependent suggestions.
to allow context-dependent suggestions.
Not compatible with `visible-to-all`, `owned`, `user`, `match`, `q`, Not compatible with `visible-to-all`, `owned`, `user`, `match`, `q`,
or `S`. or `S`.

View File

@ -127,7 +127,8 @@ public class ListGroups implements RestReadView<TopLevelResource> {
this.matchSubstring = matchSubstring; this.matchSubstring = matchSubstring;
} }
@Option(name = "--suggest", usage = "to get a suggestion of groups") @Option(name = "--suggest", aliases = {"-s"},
usage = "to get a suggestion of groups")
public void setSuggest(String suggest) { public void setSuggest(String suggest) {
this.suggest = suggest; this.suggest = suggest;
} }