We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-help
1 parent e970419 commit 7c9d094Copy full SHA for 7c9d094
1 file changed
src/main/java/com/denimgroup/threadfix/cli/endpoints/EndpointMain.java
@@ -288,6 +288,13 @@ private static boolean checkArguments(String[] args) {
288
return false;
289
}
290
291
+ for (String arg : args) {
292
+ if (arg.equals("-help")) {
293
+ printHelp();
294
+ System.exit(0);
295
+ }
296
297
+
298
File rootFile = new File(args[0]);
299
300
if (rootFile.exists() && rootFile.isDirectory() || args[0].startsWith("-path-list-file")) {
@@ -360,9 +367,6 @@ private static boolean checkArguments(String[] args) {
360
367
361
368
362
369
363
- } else if (arg.equalsIgnoreCase("-help")) {
364
- printHelp();
365
- System.exit(0);
366
370
} else {
371
println("Received unsupported option " + arg + ", run with -help to see available flags.");
372
0 commit comments