tazel
A build system for C, C++, Objective-C, Objective-C++ and Zig, with C# project files.
Clonegit clone https://git.progmasoft.com/tazel
Address Codacy notices in LicenseCommand and LicenseText
- Commit
46b49cbd389b7bb45148e43b0de1899bf8489b03- Author
- Leitwolf11 ·
- Parents
0e3307147194
Changes
src/Progmasoft.Tazel/Cli/CommandLine.cs | 2 +- src/Progmasoft.Tazel/Cli/LicenseText.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Progmasoft.Tazel/Cli/CommandLine.cs b/src/Progmasoft.Tazel/Cli/CommandLine.cs index 58a43e5..ad11eb1 100644 --- a/src/Progmasoft.Tazel/Cli/CommandLine.cs +++ b/src/Progmasoft.Tazel/Cli/CommandLine.cs @@ -105,7 +105,7 @@ internal enum LicenseFormat RestructuredText, } -internal sealed record LicenseCommand(OutputOptions Output, LicenseFormat Format = LicenseFormat.Text) : Command(Output); +internal sealed record LicenseCommand(OutputOptions Output, LicenseFormat Format) : Command(Output); internal sealed record HelpCommand(OutputOptions Output, string? Topic, HelpLength Length = HelpLength.Medium) : Command(Output) { diff --git a/src/Progmasoft.Tazel/Cli/LicenseText.cs b/src/Progmasoft.Tazel/Cli/LicenseText.cs index d4421ad..c89c577 100644 --- a/src/Progmasoft.Tazel/Cli/LicenseText.cs +++ b/src/Progmasoft.Tazel/Cli/LicenseText.cs @@ -21,8 +21,8 @@ internal static class LicenseText new("BouncyCastle.Cryptography", "MIT", "https://github.com/bcgit/bc-csharp"), ]; - /// <summary>Formats Tazel's license and shipped third-party notices in <paramref name="format"/>.</summary> - public static string Format(LicenseFormat format) => format switch + /// <summary>Formats Tazel's license and shipped third-party notices in <paramref name="kind"/>.</summary> + public static string Format(LicenseFormat kind) => kind switch { LicenseFormat.Text => PlainText(), LicenseFormat.Markdown => Markdown(),