We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e54985 commit 57e8ebdCopy full SHA for 57e8ebd
src/ConsoleAppFramework/CommandHelpBuilder.cs
@@ -294,7 +294,10 @@ public CommandHelpDefinition CreateCommandHelpDefinition(MethodInfo method)
294
else
295
{
296
// If Index is -1, ShortName is initialized at Constractor.
297
- options.Add($"-{option.ShortName!.Trim('-')}");
+ if (option.ShortName != null)
298
+ {
299
+ options.Add($"-{option.ShortName.Trim('-')}");
300
+ }
301
}
302
303
src/ConsoleAppFramework/OptionAttribute.cs
@@ -28,7 +28,7 @@ public OptionAttribute(string shortName)
28
this.Description = null;
29
30
31
- public OptionAttribute(string shortName, string description)
+ public OptionAttribute(string? shortName, string description)
32
33
this.Index = -1;
34
this.ShortName = shortName;
0 commit comments