CommandLineArgsParser 1.0.0-alpha.2
dotnet add package CommandLineArgsParser --version 1.0.0-alpha.2
NuGet\Install-Package CommandLineArgsParser -Version 1.0.0-alpha.2
<PackageReference Include="CommandLineArgsParser" Version="1.0.0-alpha.2" />
<PackageVersion Include="CommandLineArgsParser" Version="1.0.0-alpha.2" />
<PackageReference Include="CommandLineArgsParser" />
paket add CommandLineArgsParser --version 1.0.0-alpha.2
#r "nuget: CommandLineArgsParser, 1.0.0-alpha.2"
#:package CommandLineArgsParser@1.0.0-alpha.2
#addin nuget:?package=CommandLineArgsParser&version=1.0.0-alpha.2&prerelease
#tool nuget:?package=CommandLineArgsParser&version=1.0.0-alpha.2&prerelease
CommandLineArgsParser
Parse Command Line Arguments in C# cli applications into Option Names and Option Parameters
Inspired by Dart's args package though it's not a C# copy of it.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|
### Changes since 1.0.0 Alpha 1
* Removed ``UnixLikeCliParser`` - This has been replaced by an internal ``Parser`` class with updated parsing logic, experimental support for negatable flags
* Significantly overhauled ``Option`` - All options are Options (Yes, even Flags and Multi Options).
* Removed the ``Argument`` and ``Flag`` classes- These are replaced by the Option class
* Removed the ``Command`` class - This is replaced with the ArgParser type as base grammar ``ArgParser`` classes can contain other ``ArgParser`` command objects.
* Added ``ArgParser`` - An easy way to specify the argument grammar you want the parser to look for.
* Added ``ArgsResults`` - An easy way to get the parsed arguments, determine if a specified argument was provided or not, provide default values for an option if you specified defaults for an option and the option wasn't provided by your user.
### Known Issues
* Provided values aren't checked against Allowed Values (if specified) - This will be addressed in a future version although I'm not sure how users of this library will want it to handle values that aren't allowed.
* Negatable flags are in experimental support and it's likely the parsing detection won't detect all usage of negated flags.
* There are a bunch of in code comments missing for public methods - These will be addressed in future versions.
* Abbreviation checking is not implemented in this version - This will be addressed in a future version.
### Other Notes
* Currently nothing is done with Help Message values associated with the ArgParser grammar provided - Methods for printing out help messages, version info, and other things will hopefully be added in future versions.