Skip to content

Commit b6cd703

Browse files
Get the description from comment based help for input and output
1 parent 6ac623d commit b6cd703

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Transform/TransformBase.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,10 +799,11 @@ protected List<InputOutput> GetInputOutputItemsFromHelp(dynamic typesInfo)
799799
{
800800
foreach (dynamic ioType in typesInfo)
801801
{
802-
string typeName = FixUpTypeName(ioType.type.ToString());
802+
string typeName = FixUpTypeName(ioType.type.name?.Split()?[0] ?? string.Empty);
803803
if (! string.IsNullOrEmpty(typeName) && string.Compare(typeName, "None", true) != 0)
804804
{
805-
string description = GetStringFromDescriptionArray(ioType.description).Trim();
805+
//string description = GetStringFromDescriptionArray(ioType.description).Trim();
806+
string description = ioType.type.name.Replace(typeName, string.Empty).Trim();
806807
itemList.Add(new InputOutput(typeName, string.IsNullOrEmpty(description) ? Constants.FillInDescription : description));
807808
}
808809
}

0 commit comments

Comments
 (0)