Loading repository data…
Loading repository data…
yakovypg / repository
Cross-platform, free, open source C# library for parsing command-line options, arguments and subcommands
NetArgumentParser is a cross-platform, free, open source C# library for parsing command-line options, arguments and subcommands. This library contains the main features of popular argument parsers such as argparse, as well as many of its own.
NetArgumentParser supports many frameworks, so you can use it in most of your projects. Moreover, you can find clear examples of using this library here. You may also find it helpful to look at the example of NetArgumentParser integration in the Ypdf.CommandLine project — a cross-platform command-line tool for PDF processing. It is a full, end-to-end integration example.
This library supports the following main features:
-v).--version or -version)./v or /version).-lah).app subcommand subsubcommand).Many other features with examples you can find in documentation.
To start working with the library you need to connect it to your project. If you are going to connect a library cloned from a repository, you may want to build and test it before doing so.
To build the library, run the following command from the project root.
dotnet build
To test the library, run the following command from the project root.
dotnet test
The easiest way to get started with the NetArgumentParser is to include the project package via the NuGet package manager. Another way is to clone the repository and then connect it. You can find instructions for connecting NetArgumentParser to your project here.
You can read our documentation in the DOCUMENTATION.md.
Contributions are welcome, have a look at the CONTRIBUTING.md document for more information.
The project is available under the GPLv3 license.