ListGroups: Allow -s as an alias of --suggest
Change-Id: I2d0d7dcd8677f3d8beed06d27c01aaf633f5ecd6
This commit is contained in:
parent
76992c66e6
commit
9b9bdec6e9
@ -174,13 +174,12 @@ Query 25 groups starting from index 50.
|
||||
|
||||
[[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.
|
||||
If this option is set and `n` is not set, then `n` defaults to 10.
|
||||
|
||||
When using this option,
|
||||
the `project` or `p` option can be used to name the current project,
|
||||
to allow context-dependent suggestions.
|
||||
When using this option, the `project` or `p` option can be used to
|
||||
name the current project, to allow context-dependent suggestions.
|
||||
|
||||
Not compatible with `visible-to-all`, `owned`, `user`, `match`, `q`,
|
||||
or `S`.
|
||||
|
@ -127,7 +127,8 @@ public class ListGroups implements RestReadView<TopLevelResource> {
|
||||
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) {
|
||||
this.suggest = suggest;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user