Skip to content

Commit 0e18c74

Browse files
Get the description from comment-based help for input and output (#750)
1 parent 125e1ef commit 0e18c74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Transform/TransformBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,10 +799,10 @@ 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() ?? string.Empty;
806806
itemList.Add(new InputOutput(typeName, string.IsNullOrEmpty(description) ? Constants.FillInDescription : description));
807807
}
808808
}

0 commit comments

Comments
 (0)