Make -S an alias of --start in changes query REST API

The option had been added with the name `-S`.  Change the name
to `--start` with `-S` as an alias, making it consistent with the
naming in other REST APIs.

Add the option to the documentation.

Remove the documentation of `-P` and `-N`. These options only exist
to support online reindexing from clients with outdated JS, and are
deprecated. Keeping them in the documentation will potentially
cause confusion.

Bug: Issue 2878
Change-Id: I992acf4a3d1aeebb1ef40c6fed1afcb0fe26fa92
This commit is contained in:
David Pursehouse
2014-09-03 10:47:34 +09:00
parent 2b7f4c5060
commit 025ea3e560
2 changed files with 5 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ public class QueryChanges implements RestReadView<TopLevelResource> {
imp.setSortkeyBefore(key);
}
@Option(name = "-S", metaVar = "CNT", usage = "Number of changes to skip")
@Option(name = "--start", aliases = {"-S"}, metaVar = "CNT", usage = "Number of changes to skip")
public void setStart(int start) {
imp.setStart(start);
}