diff --git a/CHANGELOG.md b/CHANGELOG.md index dfbc0e3f..c2c3c7cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ All notable changes to this project will be documented in this file. - Godot .NET SDK version to 4.2.1. - Included example folder in exported repo. +### Fixed + +- Arguments & options with multiple values were displayed incorrectly in manuals. + ## [1.14.1-beta 2023-12-12] ### Added diff --git a/addons/yat/src/interfaces/ICommand.cs b/addons/yat/src/interfaces/ICommand.cs index f55041fb..5a220eb8 100644 --- a/addons/yat/src/interfaces/ICommand.cs +++ b/addons/yat/src/interfaces/ICommand.cs @@ -107,7 +107,9 @@ public virtual string GenerateArgumentsManual() foreach (var attr in attributes) { - sb.AppendLine($"[b]{attr.Name}[/b]: {attr.Type} - {attr.Description}"); + sb.AppendLine($"[b]{attr.Name}[/b]: {(attr.Type is string[] type + ? string.Join(" | ", type) + : attr.Type)} - {attr.Description}"); } return sb.ToString(); @@ -136,7 +138,9 @@ public virtual string GenerateOptionsManual() foreach (var attr in attributes) { - sb.AppendLine($"[b]{attr.Name}[/b]: {attr.Type} - {attr.Description}"); + sb.AppendLine($"[b]{attr.Name}[/b]: {(attr.Type is string[] type + ? string.Join(" | ", type) + : attr.Type)} - {attr.Description}"); } return sb.ToString();