Skip to content

Commit 2cdc6e0

Browse files
authored
add convenience method (#1103)
1 parent 1857d79 commit 2cdc6e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common-tools/clas-utils/src/main/java/org/jlab/utils/options/OptionValue.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,8 @@ public boolean parse(List<String> arguments){
5353
arguments.remove(index);
5454
return true;
5555
}
56+
57+
public boolean isDefault() {
58+
return this.optionValue.equals(this.optionDefault);
59+
}
5660
}

0 commit comments

Comments
 (0)