addOption method
Adds an option to this command.
persistent indicates whether the option should be persistent across this
command's subcommands.
Implementation
void addOption(final O option, {final bool? persistent}) {
if (persistent == true) {
persistentOptions.add(option);
} else {
options.add(option);
}
}