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
One Monitoring Tool for IT, OT and Cloud | Free Trial Icon
One Monitoring Tool for IT, OT and Cloud | Free Trial

Vendor-agnostic monitoring across on-prem servers, cloud platforms and OT devices, all in one dashboard. No more tool sprawl.

Modern infrastructure spans data centers, cloud platforms and factory floors, and every blind spot between them is a risk. PRTG supports SNMP, WMI, SSH and other standard protocols to monitor IT, OT and hybrid environments through one customizable dashboard. Build the views your team needs, from network health to application performance, without switching tools. Try PRTG free for 30 days now.
Try PRTG Free
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