We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 111def8 commit cb334bdCopy full SHA for cb334bd
1 file changed
src/main/java/org/apache/commons/cli/Option.java
@@ -573,11 +573,13 @@ public int getId() {
573
}
574
575
/**
576
- * Gets the 'unique' Option identifier.
+ * Gets the 'unique' Option identifier. This is the option value if set or the long value
577
+ * if the options value is not set.
578
*
579
* @return the 'unique' Option identifier
580
+ * @since 1.7.0
581
*/
- String getKey() {
582
+ public String getKey() {
583
// if 'opt' is null, then it is a 'long' option
584
return option == null ? longOption : option;
585
0 commit comments