Skip to content

Commit bc4c900

Browse files
committed
Fixing getValue to getOptionValue as per CLI-154
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@654432 13f79535-47bb-0310-9956-ffa450edef68
1 parent c221842 commit bc4c900

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

xdocs/usage.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,12 @@ options.addOption( property );</source>
260260
<p>
261261
To see if an option has been passed the <code>hasOption</code>
262262
method is used. The argument value can be retrieved using
263-
the <code>getValue</code> method.
263+
the <code>getOptionValue</code> method.
264264
</p>
265265
<source>// has the buildfile argument been passed?
266266
if( line.hasOption( "buildfile" ) ) {
267267
// initialise the member variable
268-
this.buildfile = line.getValue( "buildfile" );
268+
this.buildfile = line.getOptionValue( "buildfile" );
269269
}</source>
270270
</subsection>
271271
<subsection name="Usage/Help">

0 commit comments

Comments
 (0)