Skip to content

OptionBuilder

Configures discovery metadata for an option.

public sealed class OptionBuilder

Hides or shows the option on programmatic surfaces only.

public OptionBuilder AutomationHidden(bool isAutomationHidden = true)
  • isAutomationHidden (bool): Whether the option is hidden from programmatic surfaces.

OptionBuilder - The same builder instance.

Hides or shows the option on every discovery surface: help, interactive and shell completion including value providers, exported documentation, and generated MCP tool and prompt schemas.

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

OptionBuilder - The same builder instance.

Hides or shows one registered alias without changing parsing or the visibility of the canonical option token.

public OptionBuilder HiddenAlias(string alias, bool isHidden = true)
  • alias (string): A full alias token already declared on the option.
  • isHidden (bool): Whether the alias is hidden from discovery.

OptionBuilder - The same builder instance.