A command line parser that populates a class or a set of classes, with support for advanced help text formatting.


Keywords
command, line, parser, rt.commandline
License
MIT
Install
Install-Package RT.CommandLine -Version 2.2.197

Documentation

Build status

Upgrading from version 1.*

In version 2.* this library has been broken up into a number of smaller components. RT.Util itself only has components which directly depend on some Windows / Framework functionality. The majority of the code is now in RT.Util.Core, targeting netstandard2.0. If you can't find a type you used in RT.Util v1, it's almost certainly in one of the packages below.

RT.Util.Core

NuGet

Wad of stuff.

RT.Util

NuGet

Wad of stuff that isn't compatible with .NET Core, or is dependent on something that isn't compatible.

RT.Serialization

NuGet

Serialize classes to/from JSON/XML/binary/your own format. The feature set is optimized for maintaining backwards compatibility of serialized files as the classes evolve, in particular when used for application settings / configuration.

RT.Serialization implements core logic and is format-agnostic. Specific formats are implemented by the following libraries:

  • RT.Serialization.Xml NuGet
  • RT.Serialization.Json NuGet
  • RT.Serialization.Binary NuGet

RT.PostBuild

NuGet

Execute tasks after project build to validate invariants and fail the build if violated.

RT.Json

NuGet

A JSON parser written before Json.NET became good. Slower than Json.NET. API aimed at stringent access.

RT.Util.Legacy

NuGet

Legacy code from RT.Util. Preserved only to make it possible to compile ancient unmaintained private projects.