CARP - The Command line ARgument Parser for C#
NuGet Package - https://www.nuget.org/packages/CARP.ArgumentParser
Returns tokens after last empty '--'
Returns string after last empty '--'
Get all argument names and values passed to the program
Get exe path from command line
Get raw command line without the exe path
Get defined values as string array for argument
Name | Description |
---|---|
Name: | Name of the argument |
Returns: Value array |
Get defined values as array for argument parsed to type T
Name | Description |
---|---|
T: | Return type, has to have either a constructor that takes a string or a static Parse method |
Name | Description |
----- | ------ |
Name: | Name of the argument |
Returns: Value array |
Get last defined value for argument as string
Name | Description |
---|---|
Name: | Name of the argument |
Returns: Value |
Get last defined value for argument parsed to type T
Name | Description |
---|---|
T: | Return type, has to have either a constructor that takes a string or a static Parse method |
Name | Description |
----- | ------ |
Name: | Name of the argument |
Returns: Value |
Check if argument was defined
Name | Description |
---|---|
Name: | Name of argument |
Returns: True when defined, False when not defined |