Info
Version: | 0.8.1 |
Author(s): | Dinh Doan Van Bien, Vladimir Keleshev |
Last Update: | Sunday, April 3, 2022 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | http://github.com/docopt/docopt.net |
NuGet Url: | http://www.nuget.org/packages/docopt.net |
Install
Install-Package docopt.net
dotnet add package docopt.net
paket add docopt.net
docopt.net Download (Unzip the "nupkg" after downloading)
Dependencies
.NETFramework 4.0
No dependencies.
- NETStandard.Library(>= 1.6.0)
- System.Collections.NonGeneric(>= 4.0.1)
- System.Runtime.Serialization.Primitives(>= 4.1.1)
Tags
docopt.net helps you define an interface for your command-line app, and automatically generate a parser for it. docopt.net is based on conventions that have been used for decades in help messages and man pages for program interface description. Interface description in docopt.net is such a help message, but formalized. Check out http://docopt.org for a more detailed explanation.
Quick example:
var arguments = new Docopt().Apply("Usage: prog [-a] [-b] FILE", args);
if (arguments["-a"].IsTrue) {{ ..
}}.