Marks a flag as required when the CLI cannot prompt for a value.
The flag remains optional in interactive terminals. In non-interactive environments,
BaseCommand validates the flag automatically and the requirement is shown in --help.
Use BaseCommand.nonTTYFlagRequirements for conditional or alternative requirements.
Marks a flag as required when the CLI cannot prompt for a value.
The flag remains optional in interactive terminals. In non-interactive environments,
BaseCommandvalidates the flag automatically and the requirement is shown in--help. UseBaseCommand.nonTTYFlagRequirementsfor conditional or alternative requirements.