Returns true/false based on whether the given option has an argument or not.
Whether the option has an argument
| Exception Type | Condition |
|---|---|
| Exception | Thrown when the given option is not defined |
if (optionParser.IsDefined("bar") && optionParser.HasArgument("bar")) {
...
}