Skip to content

GlobalOptionBuilder

Configures discovery metadata for a registered global option.

public sealed class GlobalOptionBuilder

Hides or shows the global option on discovery surfaces without changing parsing or binding.

public GlobalOptionBuilder Hidden(bool isHidden = true)
  • isHidden (bool): Whether the option is hidden.

GlobalOptionBuilder - The same builder instance.

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)
  • alias (string): A registered alias token, with or without its long-option prefix.
  • isHidden (bool): Whether the alias is hidden from discovery.

GlobalOptionBuilder - The same builder instance.