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

You Might Also Like
Easy management of simple and complex projects Icon
Easy management of simple and complex projects

We help different businesses become digital, manage projects, teams, communicate effectively and control tasks online.

Plan more projects with Worksection. Use Gantt chart and Kanban boards to organize your projects, get your team onboard and assign tasks and due dates.
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