Benday.CommandsFramework 4.6.0

dotnet add package Benday.CommandsFramework --version 4.6.0
                    
NuGet\Install-Package Benday.CommandsFramework -Version 4.6.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Benday.CommandsFramework" Version="4.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Benday.CommandsFramework" Version="4.6.0" />
                    
Directory.Packages.props
<PackageReference Include="Benday.CommandsFramework" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Benday.CommandsFramework --version 4.6.0
                    
#r "nuget: Benday.CommandsFramework, 4.6.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Benday.CommandsFramework&version=4.6.0
                    
Install Benday.CommandsFramework as a Cake Addin
#tool nuget:?package=Benday.CommandsFramework&version=4.6.0
                    
Install Benday.CommandsFramework as a Cake Tool

Benday.CommandsFramework

Do you want to write your own command line interface (CLI) utilities? This framework gives you a way to write synchronous and asynchronous command line tools.

Key features:

  • Command line argument parsing
  • Define named command
  • Define the valid arguments for each command
  • Argument validation
  • String, boolean, int, and date time arguments

About

Written by Benjamin Day
Pluralsight Author | Microsoft MVP | Scrum.org Professional Scrum Trainer
https://www.benday.com
info@benday.com

Got ideas for git repo sync features you'd like to see? Found a bug? Let us know by submitting an issue. Want to contribute? Submit a pull request.

Source code

API Documentation

NuGet Package

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.6.0 94 3/21/2025
4.5.0 62 3/15/2025
4.4.0 238 11/20/2024
4.3.0 166 8/19/2024
4.2.0 158 8/16/2024
4.1.1 124 8/8/2024
4.1.0 120 8/8/2024
4.0.0 109 7/30/2024
4.0.0-beta 64 7/29/2024
3.4.0 89 7/26/2024
3.3.0 107 7/12/2024
3.2.0 447 2/15/2024
3.1.0 136 2/15/2024
3.0.0 127 2/14/2024
2.5.0 296 10/25/2023
2.4.0 178 10/4/2023
2.3.1 178 7/27/2023
2.3.0 156 7/27/2023
2.2.0 163 6/26/2023
2.1.0 237 4/13/2023
2.0.0 336 2/23/2023
1.5.0 297 2/21/2023
1.4.0 274 2/21/2023
1.3.1 286 2/13/2023
1.3.0 279 2/8/2023
1.2.0 279 2/8/2023
1.0.1 317 1/24/2023
1.0.0 319 1/24/2023

v4.6 - Added support for .NET Core 9.
v4.5 - Added TableFormatter to help with formatting tabular data and filtered tabular data.
v4.4 - Added FileArgument and DirectoryArgument types.
v4.3 - Added support for GetDate -Format FileDateUniversal datetime parsing.
v4.2 - Added support for more datetime files in the DateTime argument type.
v4.1.1 - Fixed bug in DefaultProgram where it was not setting the ExitCode to 1 when there was an error.
v4.1 - Added '--help' option to default program implementation in order to display usages.
v4.0 - Refactored argument base classes to remove unnecessary constructors. Added option to get all usages in JSON format using '--json' option.
v3.4 - Changed 'display usage' on commands to return ExitCode of 1 if there is an invalid/missing parameter.
v3.3 - Fixed 'display usage' formatting bug when argument does not have a description. Added logic to DefaultProgram to set ExitCode to 1 automatically on error.
v3.2 - Bug fixes.
v3.1 - Bug fixes. Added ability to inject an instance of ITextOutputProvider for testability.
v3.0 - Upgraded to .NET 8.0. Added default commands for managing basic string configuration values. Added extension methods for working with relative paths as arguments.