All Projects β†’ MatthiWare β†’ CommandLineParser.Core

MatthiWare / CommandLineParser.Core

Licence: MIT license
πŸ’» A simple, light-weight and strongly typed Command Line Parser made in .NET Standard!

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to CommandLineParser.Core

cmdr
POSIX-compliant command-line UI (CLI) parser and Hierarchical-configuration operations
Stars: ✭ 94 (+193.75%)
Mutual labels:  commandline, command-line-parser, command-line-interface
commandeer
Take command of your command line in Nim
Stars: ✭ 84 (+162.5%)
Mutual labels:  commandline, command-line-parser
Utility.CommandLine.Arguments
A C# .NET class library containing tools for parsing the command line arguments of console applications.
Stars: ✭ 105 (+228.13%)
Mutual labels:  commandline, command-line-parser
option-parser
A Lightweight, header-only CLI option parser for C++
Stars: ✭ 16 (-50%)
Mutual labels:  command-line-parser, command-line-interface
Picocli
Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.
Stars: ✭ 3,286 (+10168.75%)
Mutual labels:  commandline, command-line-parser
Blackeye-for-Windows
This is a Phishing tool. Phishing is a type of hacking also called credential harvesting. It creates fake websites for victims to login which saves their login info which includes IP, User-Agent, Username and Password to a file in the computer running Blackeye. This tool has been there for Linux and even Android via Termux. I converted it to Win…
Stars: ✭ 38 (+18.75%)
Mutual labels:  commandline, command-line-interface
Reactopt
A CLI React performance optimization tool that identifies potential unnecessary re-rendering
Stars: ✭ 1,975 (+6071.88%)
Mutual labels:  commandline, command-line-interface
Comonicon.jl
Your best CLI generator in JuliaLang
Stars: ✭ 181 (+465.63%)
Mutual labels:  command-line-parser, command-line-interface
colorify
Colorify - C#Β .Net Console Library with Text Format: colors, alignment and lot more [ Win+Mac+Linux ]
Stars: ✭ 49 (+53.13%)
Mutual labels:  dotnet-standard
TypeKitchen
TypeKitchen is a set of small libraries for fast metaprogramming in .NET Standard.
Stars: ✭ 14 (-56.25%)
Mutual labels:  dotnet-standard
vt100
πŸ’» VT100 Terminal Package
Stars: ✭ 19 (-40.62%)
Mutual labels:  commandline
CSLisp
C# Scheme / Lisp implementation for embedding in .NET projects
Stars: ✭ 27 (-15.62%)
Mutual labels:  dotnet-standard
cybr-cli
A "Swiss Army Knife" command-line interface (CLI) for easy human and non-human interaction with @cyberark suite of products.
Stars: ✭ 45 (+40.63%)
Mutual labels:  command-line-interface
pipedrive-dotnet
Pipedrive.net is an async .NET Standard client for pipedrive.com
Stars: ✭ 31 (-3.12%)
Mutual labels:  dotnet-standard
crypthash-net
CryptHash.NET is a .NET multi-target library to encrypt/decrypt/hash/encode/decode strings and files, with an optional .NET Core multiplatform console utility.
Stars: ✭ 33 (+3.13%)
Mutual labels:  dotnet-standard
discord-message-handler
Message and command handler for discord.js bots and applications
Stars: ✭ 19 (-40.62%)
Mutual labels:  command-line-parser
King.Service
Task scheduling for .NET
Stars: ✭ 34 (+6.25%)
Mutual labels:  dotnet-standard
terminal
Terminal inside the microcontroller (cli for mcu)
Stars: ✭ 31 (-3.12%)
Mutual labels:  command-line-interface
cotp
Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality.
Stars: ✭ 45 (+40.63%)
Mutual labels:  commandline
Warframe.NET
Under rewrite: Collection of Warframe libraries for C# developers.
Stars: ✭ 18 (-43.75%)
Mutual labels:  dotnet-standard

.NET Core Issues CodeCov CodeFactor License Nuget

CommandLineParser

A simple, light-weight and strongly typed commandline parser made in .NET Standard!

Installation

PM> Install-Package MatthiWare.CommandLineParser

Quick Start

Example of configuring the port option using the Fluent API.

static void Main(string[] args)
{
   // create the parser
   var parser = new CommandLineParser<ServerOptions>();
   
   // configure the options using the Fluent API
   parser.Configure(options => options.Port)
      .Name("p", "port")
      .Description("The port of the server")
      .Required();

   // parse
   var parserResult = parser.Parse(args);

   // check for parsing errors
   if (parserResult.HasErrors)
   {
      Console.ReadKey();

      return -1;
   }

   var serverOptions = parserResult.Result;

   Console.WriteLine($"Parsed port is {serverOptions.Port}");
}

private class ServerOptions
{
   // options
   public int Port { get; set; }
}

Run command line

dotnet myapp --port 2551

For more advanced configuration options see the wiki.

Contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].