From 2c05cd0cc5b9713ac1dac420b1052cd4d674f13d Mon Sep 17 00:00:00 2001 From: xnbox Date: Sat, 11 Sep 2021 11:22:40 +0300 Subject: [PATCH] Add command line arg --redirect --- README.md | 17 +++++++------- src/org/tommy/common/utils/CommonUtils.java | 1 - src/org/tommy/main/Main.java | 25 ++++++++++----------- 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 3c8e227..cbedf9b 100644 --- a/README.md +++ b/README.md @@ -39,19 +39,20 @@ Latest release: run app from ZIP (or WAR) archive, directory or URL\n"); - sb.append(" --port TCP port number (http), default: 8080\n"); - sb.append(" --port-ssl TCP port number (https), default: 8443\n"); - sb.append(" --redirect redirect http to https\n"); - sb.append(" --contextPath context path, default: /\n"); - sb.append(" --password provide password (for encrypted ZIP (or WAR) archive)\n"); + sb.append(" --help print help message\n"); + sb.append(" --app run app from ZIP or WAR archive, directory or URL\n"); + sb.append(" --port HTTP TCP port number, default: 8080\n"); + sb.append(" --port-ssl HTTPS TCP port number, default: 8443\n"); + sb.append(" --redirect redirect HTTP to HTTPS\n"); + sb.append(" --context-path context path, default: /\n"); + sb.append(" --password provide password for encrypted ZIP or WAR archive\n"); System.out.println(sb); System.exit(0); }