IsArgSet
is problematic:
- It returns whether an arg has been set, even if it has been negated.
IsArgSet
is sometimes used to check for a truthy value, which is wrong, but usually harmless. Cleanup of those cases may or may not be done in a follow-up. - In most other cases, calling it is redundant, because the immediately following
Get*Arg
calls can already return anstd::optional
nullopt value to indicate an unset arg.
So relieve both issues by removing all IsArgSet
that are redundant.