The RS Command Line Parser .Net Class Library can be used to add basic command line parsing for parameters to an application.
Parameters can be passed starting with -- or - or / as prefix character followed by a space or = between parm name and value.
Example: app.exe --action=run or --action run
Parameters are returned in a Dictionary object or a Hashtable object. Dictionary object is preferred.
The assembly is compiled at .Net version 4.0 level compatability.
Install-Package RSCommandLineParse -Version 1.0.2
dotnet add package RSCommandLineParse --version 1.0.2
<PackageReference Include="RSCommandLineParse" Version="1.0.2" />
paket add RSCommandLineParse --version 1.0.2
Updated to support parsing commnd line values with multiple keywords and preserving the value.
Ex: --parm1=This is my parm would previously get parsed incorrectly into individual words when this parm value should be preserved as: "--parm1,This is a test"
This package has no dependencies.
This package is not used by any popular GitHub repositories.