org.apache.commons.cli
Class Util
java.lang.Objectorg.apache.commons.cli.Util
(package private) class Util
extends java.lang.Object
Contains useful helper methods for classes within this package.
- John Keyes (john at integralsource.com)
(package private) static String | stripLeadingAndTrailingQuotes(String str)- Remove the leading and trailing quotes from
str.
|
(package private) static String | stripLeadingHyphens(String str)- Remove the hyphens from the begining of
str and
return the new String.
|
stripLeadingAndTrailingQuotes
(package private) static String stripLeadingAndTrailingQuotes(String str)
Remove the leading and trailing quotes from str.
E.g. if str is '"one two"', then 'one two' is returned.
str - The string from which the leading and trailing quotes
should be removed.
- The string without the leading and trailing quotes.
stripLeadingHyphens
(package private) static String stripLeadingHyphens(String str)
Remove the hyphens from the begining of str and
return the new String.
str - The string from which the hyphens should be removed.