From ca53ff28c2e0cd8d77f4a2a08ccb540158b52196 Mon Sep 17 00:00:00 2001 From: MASSHUU12 Date: Wed, 13 Dec 2023 12:08:06 +0100 Subject: [PATCH 1/2] Multiple values are handled correctly in arguments & options manuals --- addons/yat/src/interfaces/ICommand.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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(); From 8144ba3052cf22951d5aa92838bdb531d452e856 Mon Sep 17 00:00:00 2001 From: MASSHUU12 Date: Wed, 13 Dec 2023 12:09:13 +0100 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) 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