diff --git a/Documentation/rest-api-groups.txt b/Documentation/rest-api-groups.txt index e0df4ca28a..336c7cabf1 100644 --- a/Documentation/rest-api-groups.txt +++ b/Documentation/rest-api-groups.txt @@ -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`. diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/group/ListGroups.java b/gerrit-server/src/main/java/com/google/gerrit/server/group/ListGroups.java index f3a2ea2b8e..1b1ddbf7c1 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/group/ListGroups.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/group/ListGroups.java @@ -127,7 +127,8 @@ public class ListGroups implements RestReadView { 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; }