From 043bb43c26653c46d9a538a251feed4f77afc96b Mon Sep 17 00:00:00 2001 From: Andreas Gruenwald Date: Mon, 20 Jan 2020 19:07:55 +0100 Subject: [PATCH] fix(commandlinehelp): Ignore hidden commands Do not generate documentation for commands when the option class is marked as hidden Closes #20 --- ...ment_for_switch_parameters_02.received.txt | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/MdDocs.CommandLineHelp.Test/Pages/_referenceResults/CommandPageTest.GetDocument_returns_expected_document_for_switch_parameters_02.received.txt diff --git a/src/MdDocs.CommandLineHelp.Test/Pages/_referenceResults/CommandPageTest.GetDocument_returns_expected_document_for_switch_parameters_02.received.txt b/src/MdDocs.CommandLineHelp.Test/Pages/_referenceResults/CommandPageTest.GetDocument_returns_expected_document_for_switch_parameters_02.received.txt new file mode 100644 index 00000000..749f0a2b --- /dev/null +++ b/src/MdDocs.CommandLineHelp.Test/Pages/_referenceResults/CommandPageTest.GetDocument_returns_expected_document_for_switch_parameters_02.received.txt @@ -0,0 +1,32 @@ +# `CommandName` Command + +**Application:** [TestApp](../index.md) +**Version:** 1.2.3 + +## Usage + +``` +TestApp CommandName --option1|-a +``` + +## Parameters + +| Name | Short Name | Required | Description | +| ----------------------------- | ----------------------- | -------- | -------------------------- | +| [option1](#option1-parameter) | [a](#option1-parameter) | Yes | Description of parameter 1 | + +### `option1` Parameter + +Description of parameter 1 + +| | | +| -------------- | ----------------- | +| Name: | option1 | +| Short name: | a | +| Position: | *Named parameter* | +| Required: | Yes | +| Default value: | `False` | + +___ + +*Documentation generated by [MdDocs](https://github.com/ap0llo/mddocs)*