Skip to content

Commit 395346c

Browse files
committed
Better exception message
1 parent c0d1018 commit 395346c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/commons/cli/OptionBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public final class OptionBuilder {
7272
public static Option create() throws IllegalArgumentException {
7373
if (longOption == null) {
7474
reset();
75-
throw new IllegalStateException("must specify longopt");
75+
throw new IllegalStateException("longopt missing");
7676
}
7777
return create(null);
7878
}

0 commit comments

Comments
 (0)