Add toString() method in ArgumentValue

Closes gh-1196
This commit is contained in:
rstoyanchev
2025-05-29 17:14:18 +01:00
parent e17903051c
commit 15ab859626

View File

@@ -112,6 +112,12 @@ public final class ArgumentValue<T> {
return result;
}
@Override
public String toString() {
String v = ((this.value != null) ? this.value.toString() : (this.omitted) ? "omitted" : "empty");
return "ArgumentValue[" + v + "]";
}
/**
* Static factory method for an argument value that was provided, even if