GlobalOptionBuilder
Configures discovery metadata for a registered global option.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/GlobalOptionBuilder.cs
Signature
Section titled “Signature”public sealed class GlobalOptionBuilderInheritance
Section titled “Inheritance”Methods
Section titled “Methods”Hidden(bool)
Section titled “Hidden(bool)”Hides or shows the global option on discovery surfaces without changing parsing or binding.
public GlobalOptionBuilder Hidden(bool isHidden = true)Parameters
Section titled “Parameters”isHidden(bool): Whether the option is hidden.
Returns
Section titled “Returns”GlobalOptionBuilder - The same builder instance.
HiddenAlias(string, bool)
Section titled “HiddenAlias(string, bool)”Hides or shows one registered alias while leaving the global option’s canonical token visible. Parsing and binding continue to accept the alias.
public GlobalOptionBuilder HiddenAlias(string alias, bool isHidden = true)Parameters
Section titled “Parameters”alias(string): A registered alias token, with or without its long-option prefix.isHidden(bool): Whether the alias is hidden from discovery.
Returns
Section titled “Returns”GlobalOptionBuilder - The same builder instance.