Skip to content

Commit 6c22cb5

Browse files
committed
missed out adding the -s option to the parameter.
1 parent cc8ec12 commit 6c22cb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/wiztools/anyurlhttpserver/AnyUrlHttpServerMain.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ private static void printHelp(PrintStream out) {
2323
out.println(" -c Response Content-Type. Default is text/html.");
2424
out.println(" -r Response character encoding. Default is utf-8.");
2525
out.println(" -H * Response header in the format: `header:value'.");
26-
out.println(" -s Response status code.");
26+
out.println(" -s Response status code. Default is 200.");
2727
out.println(" -h Print this help.");
2828
out.println("Parameters with * can be used more than once.");
2929
}
3030

3131
public static void main(String[] args) throws Exception {
32-
OptionParser parser = new OptionParser("p:f:c:r:H:h");
32+
OptionParser parser = new OptionParser("p:f:c:r:H:s:h");
3333
OptionSet options = parser.parse(args);
3434
if(options.has("h")) {
3535
printHelp(System.out);

0 commit comments

Comments
 (0)