We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, only values WARN, INFO and DEBUG, and empty String or case-insensitive "true" are valid values for the system property picocli.trace.
WARN
INFO
DEBUG
picocli.trace
We can make this more user-friendly by allowing values WARN, INFO and DEBUG to be case-insensitive.
Index: src/main/java/picocli/CommandLine.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- src/main/java/picocli/CommandLine.java (date 1594795763490) +++ src/main/java/picocli/CommandLine.java (date 1594795763490) @@ -16896,7 +16896,7 @@ if (tracer.level.isEnabled(this)) { tracer.stream.printf(prefix(msg), params); } } private String prefix(String msg) { return "[picocli " + this + "] " + msg; } - static TraceLevel lookup(String key) { return key == null ? WARN : empty(key) || "true".equalsIgnoreCase(key) ? INFO : valueOf(key); } + static TraceLevel lookup(String key) { return key == null ? WARN : empty(key) || "true".equalsIgnoreCase(key) ? INFO : valueOf(key.toUpperCase(ENGLISH)); } } static class Tracer { TraceLevel level = TraceLevel.lookup(System.getProperty("picocli.trace"));
The text was updated successfully, but these errors were encountered:
4deed31
No branches or pull requests
Currently, only values
WARN
,INFO
andDEBUG
, and empty String or case-insensitive "true" are valid values for the system propertypicocli.trace
.We can make this more user-friendly by allowing values
WARN
,INFO
andDEBUG
to be case-insensitive.The text was updated successfully, but these errors were encountered: