mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
use 'appserver' instead of 'docserver' with backwards compatible
This commit is contained in:
parent
60f7f551ff
commit
003ba6c362
@ -12,7 +12,6 @@ import java.nio.file.StandardOpenOption;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class DocServerApp {
|
||||
public final static String APPNAME_DOCSERVER = "docserver";
|
||||
private static final Logger logger = LogManager.getLogger(DocServerApp.class);
|
||||
|
||||
// static {
|
||||
@ -129,7 +128,7 @@ public class DocServerApp {
|
||||
|
||||
private static void showHelp(String... helpArgs) {
|
||||
System.out.println(
|
||||
"Usage: " + APPNAME_DOCSERVER + " " +
|
||||
"Usage: appserver " +
|
||||
" [url] " +
|
||||
" [path]... " + "\n" +
|
||||
"\n" +
|
||||
|
@ -97,7 +97,7 @@ public class NBCLI {
|
||||
VirtDataMainApp.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
System.exit(0);
|
||||
}
|
||||
if (args.length > 0 && args[0].toLowerCase().equals("docserver")) {
|
||||
if (args.length > 0 && args[0].toLowerCase().matches("docserver|appserver")) {
|
||||
DocServerApp.main(Arrays.copyOfRange(args, 1, args.length));
|
||||
System.exit(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user