stoty commented on a change in pull request #58:
URL: https://github.com/apache/commons-cli/pull/58#discussion_r726801691



##########
File path: src/main/java/org/apache/commons/cli/DefaultParser.java
##########
@@ -625,4 +643,119 @@ private void updateRequiredOptions(final Option option) 
throws AlreadySelectedEx
             group.setSelected(option);
         }
     }
+
+    /**
+     * Strip balanced leading and trailing quotes if the 
stripLeadingAndTrailingQuotes is set
+     *
+     * @param token a string
+     * @return token with the quotes stripped (if set)
+     */
+    protected String conditionallyStripLeadingAndTrailingQuotes(final String 
token) {
+        if (stripLeadingAndTrailingQuotes) {
+            return Util.stripLeadingAndTrailingQuotes(token);
+        } else {
+            return token;
+        }
+    }
+
+    /**
+     * Returns a {@link Builder} to create an {@link DefaultParser} using 
descriptive
+     * methods.
+     *
+     * @return a new {@link Builder} instance
+     * @since 1.5
+     */
+    public static Builder builder()
+    {
+        return new Builder();
+    }
+
+    /**
+     * A nested builder class to create <code>DefaultParser</code> instances
+     * using descriptive methods.
+     * <p>
+     * Example usage:

Review comment:
       I've just removed it.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to