jcommander icon indicating copy to clipboard operation
jcommander copied to clipboard

Command line parsing framework for Java

Results 152 jcommander issues
Sort by recently updated
recently updated
newest added

I am packaging this project and noticed this file outside of java source tree. Is it supposed to be added manually or not? If not, is there a reason why...

bug

I frequently had the need to check parameters for validity, but the validity was *not static*. So I wished there would be a rule that could be pointed to instead...

We use [Dependency Verification](https://docs.gradle.org/current/userguide/dependency_verification.html) and currently there is no documentation stating which keys are safe Could you please document this? For example,`1.81` [ was signed](https://repo1.maven.org/maven2/com/beust/jcommander/1.81/jcommander-1.81.jar.asc) using [dcba03381ef6c89096acd985ac5ec74981f9cda6](https://keyserver.ubuntu.com/pks/lookup?search=dcba03381ef6c89096acd985ac5ec74981f9cda6&fingerprint=on&op=index) But `1.82` [was...

This change allows to build on modern JDK. Without this change, building on modern JDK fails due to disallowed access to JDK internals performed by older Gradle versions.

When specifying a file with parameters and " " as separator, JCommander crashed because the parameters and their values were not split correctly. This is the (ugly) fix.

Fixes #571 A default fulfills requirement, but does not count as assignment.

bug

Due to a recent change for handling required parameters at: https://github.com/cbeust/jcommander/commit/6436ca65881e658504652fc41d7a9a6e07df82a8#r132149657 it is no longer possible determine if a parameter was received from the command line. That information is useful...

bug

Hi, in the following pull request you can find my implementation for the feature I described within issue https://github.com/cbeust/jcommander/issues/395. It contains: - the change it self - test cases (as...

`jCommander.parse(args)` throw ParameterException("Password parameter must have at most 1 argument.") when processing multiple fields marked as `password` ![image](https://github.com/cbeust/jcommander/assets/15269131/eb661cd9-d962-4c82-9181-dcfafc0c68d3) ![image](https://github.com/cbeust/jcommander/assets/15269131/123a6e6c-3500-4a65-a0dd-583643f2e0d0)

**Example 1: java.lang.String works:** import com.beust.jcommander.JCommander; import com.beust.jcommander.Parameter; public class Test { @Parameter String param; public static void main(String[] args) { JCommander.newBuilder() .addObject(new Test()) .args(args) .build(); } } **Example 2:...