From d4c2d774794101dc5c536c858753978c14cbabb8 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 4 Dec 2015 16:08:41 +0000 Subject: [PATCH] * prettier `filebot -help` output --- source/net/filebot/cli/ArgumentBean.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/cli/ArgumentBean.java b/source/net/filebot/cli/ArgumentBean.java index 3c9cb635..69dfdaea 100644 --- a/source/net/filebot/cli/ArgumentBean.java +++ b/source/net/filebot/cli/ArgumentBean.java @@ -19,6 +19,7 @@ import org.kohsuke.args4j.Argument; import org.kohsuke.args4j.CmdLineException; import org.kohsuke.args4j.CmdLineParser; import org.kohsuke.args4j.Option; +import org.kohsuke.args4j.ParserProperties; import org.kohsuke.args4j.spi.ExplicitBooleanOptionHandler; public class ArgumentBean { @@ -201,7 +202,7 @@ public class ArgumentBean { } public static void printHelp(ArgumentBean argumentBean, OutputStream out) { - new CmdLineParser(argumentBean).printUsage(out); + new CmdLineParser(argumentBean, ParserProperties.defaults().withShowDefaults(false).withOptionSorter(null)).printUsage(out); } }