Skip to content

Commit 437bcff

Browse files
committed
Debug params compatibility with toher commands
- All other commands allow for --debug and -D on top of --verbose and -v
1 parent afbcbf4 commit 437bcff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/net/sourceforge/pmd/util/fxdesigner/app/DesignerParams.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import java.util.List;
1010

1111
import com.sun.javafx.application.ParametersImpl;
12+
1213
import javafx.application.Application.Parameters;
1314

1415

@@ -42,7 +43,7 @@ public DesignerParams(String... args) {
4243
public DesignerParams(Parameters params) {
4344
List<String> raw = params.getRaw();
4445
// error output is disabled by default
45-
if (raw.contains("-v") || raw.contains("--verbose")) {
46+
if (raw.contains("-v") || raw.contains("--verbose") || raw.contains("--debug") || raw.contains("-D")) {
4647
isDeveloperMode = true;
4748
}
4849

0 commit comments

Comments
 (0)