Skip to content

Commit 6432232

Browse files
committed
Fix typos.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1439189 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6c19162 commit 6432232

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public CommandLine parse(Options options, String[] arguments, Properties propert
104104

105105
/**
106106
* Parses the specified <code>arguments</code>
107-
* based on the specifed {@link Options}.
107+
* based on the specified {@link Options}.
108108
*
109109
* @param options the <code>Options</code>
110110
* @param arguments the <code>arguments</code>
@@ -306,7 +306,7 @@ else if (!("yes".equalsIgnoreCase(value)
306306
*/
307307
protected void checkRequiredOptions() throws MissingOptionException
308308
{
309-
// if there are required options that have not been processsed
309+
// if there are required options that have not been processed
310310
if (!getRequiredOptions().isEmpty())
311311
{
312312
throw new MissingOptionException(getRequiredOptions());
@@ -358,7 +358,7 @@ public void processArgs(Option opt, ListIterator<String> iter) throws ParseExcep
358358

359359
/**
360360
* Process the Option specified by <code>arg</code> using the values
361-
* retrieved from the specfied iterator <code>iter</code>.
361+
* retrieved from the specified iterator <code>iter</code>.
362362
*
363363
* @param arg The String value representing an Option
364364
* @param iter The iterator over the flattened command line arguments.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
* <tr><td>a</td><td>-a flag</td></tr>
3434
* <tr><td>b@</td><td>-b [classname]</td></tr>
3535
* <tr><td>c&gt;</td><td>-c [filename]</td></tr>
36-
* <tr><td>d+</td><td>-d [classname] (creates object via empty contructor)</td></tr>
37-
* <tr><td>e%</td><td>-e [number] (creates Double/Long instance depeding on existing of a '.')</td></tr>
36+
* <tr><td>d+</td><td>-d [classname] (creates object via empty constructor)</td></tr>
37+
* <tr><td>e%</td><td>-e [number] (creates Double/Long instance depending on existing of a '.')</td></tr>
3838
* <tr><td>f/</td><td>-f [url]</td></tr>
3939
* <tr><td>g:</td><td>-g [string]</td></tr>
4040
* </table>

0 commit comments

Comments
 (0)