mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-19 10:12:50 +08:00

CommandOptions now has an IsHidden property that, when set to true, will cause the option to be hidden from the following cases: - Help text using `-h|--help` - Xml representations generated with the `cli xml` command - Diagnostics displayed with the `cli explain` command Hidden options can still be outputted with `cli explain` using the `--hidden` option that is also used to display hidden commands. Fixes #631
14 lines
652 B
Plaintext
14 lines
652 B
Plaintext
<?xml version="1.0" encoding="utf-8"?>
|
|
<Model>
|
|
<!--DEFAULT COMMAND-->
|
|
<Command Name="__default_command" IsBranch="false" IsDefault="true" ClrType="Spectre.Console.Tests.Data.HiddenOptionsCommand" Settings="Spectre.Console.Tests.Data.HiddenOptionSettings">
|
|
<Parameters>
|
|
<Argument Name="FOO" Position="0" Required="true" Kind="scalar" ClrType="System.Int32">
|
|
<Description>Dummy argument FOO</Description>
|
|
</Argument>
|
|
<Option Short="" Long="baz" Value="NULL" Required="false" Kind="scalar" ClrType="System.Int32">
|
|
<Description>Dummy option BAZ</Description>
|
|
</Option>
|
|
</Parameters>
|
|
</Command>
|
|
</Model> |