diff --git a/CliFx/CliFx.csproj b/CliFx/CliFx.csproj
index c9733a3..641cd57 100644
--- a/CliFx/CliFx.csproj
+++ b/CliFx/CliFx.csproj
@@ -18,6 +18,11 @@
snupkg
+
+
+ annotations
+
+
<_Parameter1>$(AssemblyName).Tests
diff --git a/CliFx/Domain/CommandSchema.cs b/CliFx/Domain/CommandSchema.cs
index f797cb9..1f24e0d 100644
--- a/CliFx/Domain/CommandSchema.cs
+++ b/CliFx/Domain/CommandSchema.cs
@@ -210,8 +210,8 @@ namespace CliFx.Domain
type,
attribute?.Name,
attribute?.Description,
- parameters,
- options
+ parameters!,
+ options!
);
}
}
diff --git a/CliFx/Domain/HelpTextWriter.cs b/CliFx/Domain/HelpTextWriter.cs
index cdf703a..cdb6c00 100644
--- a/CliFx/Domain/HelpTextWriter.cs
+++ b/CliFx/Domain/HelpTextWriter.cs
@@ -279,9 +279,9 @@ namespace CliFx.Domain
foreach (var childCommand in childCommands)
{
var relativeCommandName =
- string.IsNullOrWhiteSpace(childCommand.Name) || string.IsNullOrWhiteSpace(command.Name)
- ? childCommand.Name
- : childCommand.Name.Substring(command.Name.Length + 1);
+ !string.IsNullOrWhiteSpace(command.Name)
+ ? childCommand.Name!.Substring(command.Name.Length + 1)
+ : childCommand.Name!;
// Name
RenderIndent();