There is no way that I can figure out how to do this. clap has conditional parsing for very specific things, like required_unless_present. What I need is a value_parser_if function but that doesn't exist, and this problem, error code 1 instead of 2, really isn't that important.
There is no way that I can figure out how to do this. clap has conditional parsing for very specific things, like
required_unless_present
. What I need is avalue_parser_if
function but that doesn't exist, and this problem, error code 1 instead of 2, really isn't that important.