174 packages tagged with “Argument”
Terse syntax C# command line parser for .NET. For FSharp support see CommandLineParser.FSharp. The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks.
A high-performance, extensible argument validation library.
Argument validation made simple and unified. It ensures arguments conforms to simple validation rules and provides an uniformed exception throwing strategy if arguments are invalid.
A declarative command line and XML configuration parser for F# applications.
A simple, fluent, extensible, and fully customizable library for throwing exceptions using .NET 6+
Model your command line application interface in a class
CuttingEdge.Conditions is a library that helps developers to write fluent pre and postcondition validations in their C# 3.0 and VB.NET 9.0 code base. Writing these validations is easy and it improves the readability and maintainability of code.
Catel.Core library.
docopt.net is the .net version of the docopt python beautiful command line parser. 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) {{ ... }}
.NET Core 2.0 & Standard 2.0 port of A simple guard clause project helping you with validation and uniformed exception throwing when validating arguments.
Uses Humanizer to transform the case of command and argument names
Provides dead-easy commandline argument parsing. Can be as simple as: 1. define an interface of options you'd like to parse 2. var opts = args.ParseTo<IArgs>() See the readme for more info
A simple guard library for validating method parameters without being a complete validation library. This library makes it easy to validate method arguments in a uniform way.
A library to check your arguments in a simple comfort way. This library do not use Expression or nameof. It is based on Func<T>. So no performance issue during positive argument check.
Guard and Validator library. Example: Guard.That(arg1).IsNotNull().GreaterThan(100); Throws an exception if conditions are not met. Supports the ability to get a list of the failed conditions.
Equivalency based argument matcher for NSubstitute
Generalized assertion library, covering argument, operation, and unit test assertions.
Configures Microsoft.Extensions.DependencyInjection for dependency injection
Fluent command line argument parsing library with a focus on a very simple API
Argument validation methods, for example: this.user = Argument.NotNull("user", user). Less fancy than approaches based on lambdas/anonymous classes, but less scary performance-wise (given that argument checks are often all over the place). Annotations: C# 8 nullable reference types, ReSharper, Microsoft.CodeQuality.Analyzers, Code Contracts (.NET 4.5 only).
Collection of simple pieces of reusable code designed such that dependencies aren't forced upon consumers of its packages. Package is shipped as source code.
Deep fork of the Seterlund.CodeGuard library. Example: Guard.That(arg1).IsNotNull().GreaterThan(100); Throws an exception if conditions are not met.
OBSOLETE - This fork is not maintained, and the official package has activity again. Please use this one: https://www.nuget.org/packages/CommandLineParser/ --- The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks.
Uses System.ComponentModel.DataAnnotations to validate arguments
Ookii.CommandLine is a powerful, flexible and highly customizable command line argument parsing library for .Net applications. - Easily define arguments by creating a class with properties. - Create applications with multiple subcommands. - Generate fully customizable usage help. - Supports PowerShell-like and POSIX-like parsing rules. - Compatible with trimming and native AOT.
Terse syntax C# command line parser for .NET with F# support. The Command Line Parser Library offers to CLR applications a clean and concise API for manipulating command line arguments and related tasks.
Provides a command line arguments builder, methods to run executables and extract outputs, etc.
Uses FluentValidation validators to validate arguments defined using an IArgumentModel
The ultimate .NET command line parser - PowerArgs converts command line arguments into .NET objects that are easy to program against. It also provides a ton of additional, optional capabilities that you can try such as argument validation, auto generated usage documentation, tab completion, Entity Framework querying, secure string arguments, and plenty of hooks for extensibility.