Skip to content

Hiding parameters from help

JF Blouin edited this page May 7, 2019 · 6 revisions

Parameters can be hidden from help generated on execution. This can be useful for debug purposes.


The ParameterHidden attribute

The parameter you wish to hide from help simply needs to be decorated with the ParameterHidden attribute, located in the CommandLineEngine.Attributes namespace. This attribute has no additional properties.

Hidden parameters will still be parsed and passed to the command during execution.

Clone this wiki locally