Command.AddGlobalOption(Option) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a global Option to the command.
public:
void AddGlobalOption(System::CommandLine::Option ^ option);
public void AddGlobalOption (System.CommandLine.Option option);
member this.AddGlobalOption : System.CommandLine.Option -> unit
Public Sub AddGlobalOption (option As Option)
Parameters
- option
- Option
The global option to add to the command.
Remarks
Global options are applied to the command and recursively to subcommands. They do not apply to parent commands.
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.