Skip to content

Commit 43a3545

Browse files
author
John Keyes
committed
fix for bug 13666, 13780
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@129825 13f79535-47bb-0310-9956-ffa450edef68
1 parent e2d7218 commit 43a3545

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/java/org/apache/commons/cli/Option.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public String getArgName() {
395395
* set.
396396
*/
397397
public boolean hasArgName() {
398-
return (this.argName != null || this.argName.length() > 0 );
398+
return (this.argName != null && this.argName.length() > 0 );
399399
}
400400

401401
/**

0 commit comments

Comments
 (0)