common
common copied to clipboard
Parameter help text should include additional information
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"].