Skip to content

Commit 8c5275e

Browse files
committed
Fix: Correct symbol name formatting in CommandDto
Updated the logic to use the full kebab-case format for symbol names instead of only their initials. This ensures consistent and clearer naming conventions across the application.
1 parent 9b6377e commit 8c5275e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeOfChaos.CliArgsParser.Generators/CommandDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private static string GetName(INamedTypeSymbol symbol) {
3636

3737
if (cliDataAttribute?.ConstructorArguments.ElementAtOrDefault(0).Value is string cliDataName) return cliDataName;
3838
return attributes.Any(attr => attr.IsDisplayName(TypeNames.AutoNameAttribute))
39-
? string.Join("", symbol.Name.ToKebabCase().Split('-').Select(s => s[0]))
39+
? symbol.Name.ToKebabCase()
4040
: "UNDEFINED";
4141
}
4242

0 commit comments

Comments
 (0)