Skip to content

Commit 330802f

Browse files
authored
Change method visibility
Change the visibility of method `handleUnknownToken()` to `protected`, give end engineer a change to handle such case themselves.
1 parent d214192 commit 330802f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ private void handleToken(final String token) throws ParseException {
556556
*
557557
* @param token the command line token to handle
558558
*/
559-
private void handleUnknownToken(final String token) throws ParseException {
559+
protected void handleUnknownToken(final String token) throws ParseException {
560560
if (token.startsWith("-") && token.length() > 1 && !stopAtNonOption) {
561561
throw new UnrecognizedOptionException("Unrecognized option: " + token, token);
562562
}

0 commit comments

Comments
 (0)