CommandLineUtils is a library that helps developers implement command line applications in .NET. The primary goal of the library is to assist with parsing command line arguments and executing the correct commands related to those arguments. The library also provides various other utilities such as input helpers. This project helps you create command line applications using .NET. It simplifies parsing arguments provided on the command line, validating user inputs, and generating help text. CommandLineApplication is the main entry point for most console apps parsing. There are two primary ways to use this API, using the builder pattern and attributes. The library also includes other utilities for interaction with the console. A common scenario for options is to allow specifying a value-less option multiple times without value. The library supports counting flags by using bool[] or by checking for the number of values in Values.

Features

  • When a command executes, the raw string[] args value can be separated into two different categories
  • Options are named and must be specified using a name
  • Options are optional and order does not matter, but they can be made mandatory
  • Arguments are positional and values are specified based by order
  • Options can be identified by multiple names
  • OptionAttribute can be used on properties to define options

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

Apache License V2.0

Follow CommandLineUtils

CommandLineUtils Web Site

Other Useful Business Software
Rezku Point of Sale Icon
Rezku Point of Sale

Designed for Real-World Restaurant Operations

Rezku is an all-inclusive ordering platform and management solution for all types of restaurant and bar concepts. You can now get a fully custom branded downloadable smartphone ordering app for your restaurant exclusively from Rezku.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of CommandLineUtils!

Additional Project Details

Programming Language

C#

Related Categories

C# Frameworks

Registered

2022-09-14