common icon indicating copy to clipboard operation
common copied to clipboard

Parameter help text should include additional information

Open VolkmarR opened this issue 5 years ago • 0 comments

Hi... I gave this issue a try and added an implementation. I added the GetParameterGeneratedDescription Method to the ParameterService and used this method in the PrintParameter Method, when the parameter description is null.

I also added unit tests for the following cases:

[Parameter("TestDescription")] string TestParam => TestDescription. [Parameter()] string StringParam = "TEST" => The default value is "TEST". [Parameter()] TestEnum EnumParam = TestEnum.Maybe => The available values are "Yes", "No", "Maybe". The default value is "Maybe". [Parameter(Separator = ",")] int[] IntArrayParam => List of Int32 values, separated by ",". [Parameter()] string[] StrArrayParam = new string[] { "Elem1", "Elem2" }; => List of String values, separated by " ". The default value is ["Elem1", "Elem2"].

VolkmarR avatar May 05 '19 15:05 VolkmarR