Handling Main Command Options Without Affecting Subcommands
Dummy question about main command and subcomands...
I observe that, when I make an option not optional in the main command, that is always required in all subcomands, even if they don't use it. But if I make it optional, I will have to deal with that in the main command... Isn't there a way to say "this option only applies if you are calling the main command" and not have to worry about making it optional?
I observe that, when I make an option not optional in the main command, that is always required in all subcomands, even if they don't use it. But if I make it optional, I will have to deal with that in the main command... Isn't there a way to say "this option only applies if you are calling the main command" and not have to worry about making it optional?
