diff --git a/BytecodeApi.CommandLineParser/.nuget/README.md b/BytecodeApi.CommandLineParser/.nuget/README.md index 9875a28..6df3688 100644 --- a/BytecodeApi.CommandLineParser/.nuget/README.md +++ b/BytecodeApi.CommandLineParser/.nuget/README.md @@ -1,13 +1,21 @@ -# BytecodeApi.CommandLineParser - -Library for commandline parsing and handling. - -## Examples - -See: [Examples](https://github.com/bytecode77/bytecode-api/blob/master/BytecodeApi.CommandLineParser/README.md) - -## Changelog - -### 3.0.0 (08.09.2023) - +# BytecodeApi.CommandLineParser + +Library for commandline parsing and handling. + +## Examples + +See: [Examples](https://github.com/bytecode77/bytecode-api/blob/master/BytecodeApi.CommandLineParser/README.md) + +## Changelog + +### 5.0.0 (15.02.2026) + +* **change:** Targeting .NET 10.0 + +### 4.0.0 (15.09.2025) + +* **change:** Targeting .NET 9.0 + +### 3.0.0 (08.09.2023) + * Initial release \ No newline at end of file diff --git a/BytecodeApi.CommandLineParser/BytecodeApi.CommandLineParser.csproj b/BytecodeApi.CommandLineParser/BytecodeApi.CommandLineParser.csproj index ea98de6..039c7ef 100644 --- a/BytecodeApi.CommandLineParser/BytecodeApi.CommandLineParser.csproj +++ b/BytecodeApi.CommandLineParser/BytecodeApi.CommandLineParser.csproj @@ -1,43 +1,40 @@ - - - net7.0 - enable - enable - True - True - - - 3.0.0 - 3.0.0 - 3.0.0 - - - BytecodeApi.CommandLineParser - BytecodeApi.CommandLineParser - Library for commandline parsing and handling. - bytecode77 - Martin Fischer - © bytecode77, 2023. - - - BytecodeApi.CommandLineParser - commandline cli parsing cmd - https://bytecode77.com/bytecode-api - git - https://github.com/bytecode77/bytecode-api - BSD-2-Clause - .nuget\README.md - .nuget\PackageIcon.png - ../$Build - - - - - - - - - - - + + + net10.0 + enable + enable + True + True + + + 5.0.0 + 5.0.0 + 5.0.0 + + + BytecodeApi.CommandLineParser + BytecodeApi.CommandLineParser + Library for commandline parsing and handling. + bytecode77 + Martin Fischer + © bytecode77, 2026. + + + BytecodeApi.CommandLineParser + commandline cli parsing cmd + https://bytecode77.com/bytecode-api + git + https://github.com/bytecode77/bytecode-api + MIT + .nuget\README.md + .nuget\PackageIcon.png + ../$Build + + + + + + + + \ No newline at end of file diff --git a/BytecodeApi.CommandLineParser/CommandLineParserError.cs b/BytecodeApi.CommandLineParser/CommandLineParserError.cs index 5a9f72a..7a27a7e 100644 --- a/BytecodeApi.CommandLineParser/CommandLineParserError.cs +++ b/BytecodeApi.CommandLineParser/CommandLineParserError.cs @@ -1,52 +1,52 @@ -namespace BytecodeApi.CommandLineParser; - -/// -/// Specifies a validation source for a , if validated using the object. -/// -public enum CommandLineParserError -{ - /// - /// The exception is a general error that did not occur during validation using the object. - /// - None, - /// - /// The exception occurred in the method. - /// - OptionRequired, - /// - /// The exception occurred in the method. - /// - OptionNotDuplicate, - /// - /// The exception occurred in the method. - /// - ValueCount, - /// - /// The exception occurred in the method. - /// - MinimumValueCount, - /// - /// The exception occurred in the method. - /// - MaximumValueCount, - /// - /// The exception occurred in the method. - /// - Custom, - /// - /// The exception occurred in the method. - /// - Int32, - /// - /// The exception occurred in the method. - /// - FileExists, - /// - /// The exception occurred in the method. - /// - DirectoryExists, - /// - /// The exception occurred in the method. - /// - FileExtension +namespace BytecodeApi.CommandLineParser; + +/// +/// Specifies a validation source for a , if validated using the object. +/// +public enum CommandLineParserError +{ + /// + /// The exception is a general error that did not occur during validation using the object. + /// + None, + /// + /// The exception occurred in the method. + /// + OptionRequired, + /// + /// The exception occurred in the method. + /// + OptionNotDuplicate, + /// + /// The exception occurred in the method. + /// + ValueCount, + /// + /// The exception occurred in the method. + /// + MinimumValueCount, + /// + /// The exception occurred in the method. + /// + MaximumValueCount, + /// + /// The exception occurred in the method. + /// + Custom, + /// + /// The exception occurred in the method. + /// + Int32, + /// + /// The exception occurred in the method. + /// + FileExists, + /// + /// The exception occurred in the method. + /// + DirectoryExists, + /// + /// The exception occurred in the method. + /// + FileExtension } \ No newline at end of file diff --git a/BytecodeApi.CommandLineParser/CommandLineParserException.cs b/BytecodeApi.CommandLineParser/CommandLineParserException.cs index 5b8af70..dfab8f8 100644 --- a/BytecodeApi.CommandLineParser/CommandLineParserException.cs +++ b/BytecodeApi.CommandLineParser/CommandLineParserException.cs @@ -1,29 +1,29 @@ -namespace BytecodeApi.CommandLineParser; - -/// -/// The exception that is thrown when commandline parsing failed or was asserted using the object. -/// -public sealed class CommandLineParserException : Exception -{ - /// - /// Gets a value that indicates what validation took place using the object. For general exceptions, is returned. - /// - public CommandLineParserError Error { get; private init; } - - /// - /// Initializes a new instance of the class. - /// - /// The message that describes the error. - public CommandLineParserException(string? message) : this(CommandLineParserError.None, message) - { - } - /// - /// Initializes a new instance of the class. - /// - /// If validated using the object, indicates what validation took place. - /// The message that describes the error. - public CommandLineParserException(CommandLineParserError error, string? message) : base(message) - { - Error = error; - } +namespace BytecodeApi.CommandLineParser; + +/// +/// The exception that is thrown when commandline parsing failed or was asserted using the object. +/// +public sealed class CommandLineParserException : Exception +{ + /// + /// Gets a value that indicates what validation took place using the object. For general exceptions, is returned. + /// + public CommandLineParserError Error { get; } + + /// + /// Initializes a new instance of the class. + /// + /// The message that describes the error. + public CommandLineParserException(string? message) : this(CommandLineParserError.None, message) + { + } + /// + /// Initializes a new instance of the class. + /// + /// If validated using the object, indicates what validation took place. + /// The message that describes the error. + public CommandLineParserException(CommandLineParserError error, string? message) : base(message) + { + Error = error; + } } \ No newline at end of file diff --git a/BytecodeApi.CommandLineParser/Option.cs b/BytecodeApi.CommandLineParser/Option.cs index d965147..172dd6f 100644 --- a/BytecodeApi.CommandLineParser/Option.cs +++ b/BytecodeApi.CommandLineParser/Option.cs @@ -1,120 +1,120 @@ -using BytecodeApi.Extensions; -using System.Collections.ObjectModel; -using System.Diagnostics; - -namespace BytecodeApi.CommandLineParser; - -/// -/// Represents a commandline option, specified by possible arguments and alternatives. -/// Example: "-p 12345" and "--password 12345" -/// -[DebuggerDisplay($"{nameof(Option)}: Arguments = {{string.Join(\"|\", Arguments)}}, Alternatives = {{string.Join(\"|\", Alternatives)}}")] -public sealed class Option : IEquatable