use 'appserver' instead of 'docserver' with backwards compatible

This commit is contained in:
Jonathan Shook 2020-09-15 17:51:06 -05:00
parent 60f7f551ff
commit 003ba6c362
2 changed files with 9 additions and 10 deletions

View File

@ -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" +

View File

@ -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);
}