A library that helps you to parse command line arguments for your applications #Parse command line #Cmd parser #Command line parser #Parser #Parse #Cmd
Ookii.CommandLine is a command prompt utility designed to provide comprehensive command line argument parsing for .Net applications. It allows you to easily define required, optional, positional and named arguments, parse the command line, and generate usage information.
Ookii.CommandLine can be used with any kind of .Net application, whether Console, Windows Forms, or WPF. Although a limited subset of functionality – particularly related around generating usage help text – is geared primarily towards console applications that are invoked from the command prompt, the main command line parsing functionality is usable in any application that needs to process command line arguments.
To define a set of command line arguments, you create a class that will hold their values. The constructor parameters and properties of that class determine the set of arguments that are accepted. Attributes can be used to specify things such as the argument name and whether or not an argument is required, and to specify descriptions used to customize the usage help.
Command line parsing is done in a way that is similar to that used by Windows PowerShell. Each argument has a name, and can be supplied by name on the command line. An argument can also be positional, in which case it can be supplied without the name.
Arguments can be required or optional, and there is support for switch arguments (which don't need a value but are either present or not) and arguments with multiple values. Various aspects of the parsing, such as the argument name prefix (typically a / or a -), can be customized.
System requirements
What's new in Ookii.CommandLine 2.2:
- Added support for alternative names (aliases) for command line arguments.
- An argument’s aliases and default value can be included in the argument description when generating usage.
- Added code snippets.
Ookii.CommandLine 2.2
add to watchlist add to download basket send us an update REPORT- runs on:
- Windows All
- file size:
- 623 KB
- main category:
- Programming
- developer:
- visit homepage
IrfanView
Zoom Client
7-Zip
4k Video Downloader
Context Menu Manager
Microsoft Teams
ShareX
Windows Sandbox Launcher
calibre
Bitdefender Antivirus Free
- Windows Sandbox Launcher
- calibre
- Bitdefender Antivirus Free
- IrfanView
- Zoom Client
- 7-Zip
- 4k Video Downloader
- Context Menu Manager
- Microsoft Teams
- ShareX