Init: Accept -b as an alias of --batch

Change-Id: Id22c6c8a7fc407cb8da7e3f64299648714a5d78a
This commit is contained in:
David Pursehouse 2016-09-16 09:43:24 +02:00
parent 82e2d0b363
commit 4feb667bf7
2 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,7 @@ If run in an existing `$site_path`, init upgrades existing resources
(e.g. DB schema, plugins) as necessary.
== OPTIONS
-b::
--batch::
Run in batch mode, skipping interactive prompts. For a fresh
install, reasonable configuration defaults are chosen based

View File

@ -45,7 +45,8 @@ import java.util.List;
/** Initialize a new Gerrit installation. */
public class Init extends BaseInit {
@Option(name = "--batch", usage = "Batch mode; skip interactive prompting")
@Option(name = "--batch", aliases = {"-b"},
usage = "Batch mode; skip interactive prompting")
private boolean batchMode;
@Option(name = "--no-auto-start", usage = "Don't automatically start daemon after init")