Skip to content

Commit ed0e3db

Browse files
committed
Javadocs and comments
Normalize spelling to "behavior"
1 parent d214192 commit ed0e3db

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public Builder setAllowPartialMatching(final boolean allowPartialMatching) {
106106
*
107107
* If "stripping of balanced leading and trailing double quotes from option arguments" is null,
108108
* then quotes will be stripped from option values separated by space from the option, but
109-
* kept in other cases, which is the historic behaviour.
109+
* kept in other cases, which is the historic behavior.
110110
*
111111
* @param stripLeadingAndTrailingQuotes whether balanced leading and trailing double quotes should be stripped from option arguments.
112112
* @return this builder, to allow method chaining
@@ -157,7 +157,7 @@ public static Builder builder() {
157157
private final boolean allowPartialMatching;
158158

159159
/** Flag indicating if balanced leading and trailing double quotes should be stripped from option arguments.
160-
* null represents the historic arbitrary behaviour */
160+
* null represents the historic arbitrary behavior */
161161
private final Boolean stripLeadingAndTrailingQuotes;
162162

163163
/**

src/test/java/org/apache/commons/cli/DefaultParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void testShortOptionConcatenatedQuoteHandling() throws Exception {
9797

9898
final CommandLine cl = parser.parse(options, args);
9999

100-
//This is behaviour is not consistent with the other parsers, but is required for backwards compatibility
100+
//This is behavior is not consistent with the other parsers, but is required for backwards compatibility
101101
assertEquals("Confirm -b\"arg\" keeps quotes", "\"quoted string\"", cl.getOptionValue("b"));
102102
}
103103

0 commit comments

Comments
 (0)