Softhouse / jargo

Argument and options parser for java
Other
17 stars 0 forks source link

Pass usage to ArgumentExceptions thrown by command execute invocations #43

Closed jontejj closed 6 years ago

jontejj commented 6 years ago

Right now:

Exception in thread "main" java.lang.NullPointerException: No originParser set for ArgumentException. No usage available.
    at java.util.Objects.requireNonNull(Objects.java:228)
    at se.softhouse.jargo.ArgumentException.getUsage(ArgumentException.java:122)
    at se.softhouse.jargo.ArgumentException.getMessageAndUsage(ArgumentException.java:88)
    at ....

is returned instead.

jontejj commented 6 years ago

Fixed in the jontejj repo