This library is now retired and will not receive further updates. Please consider System.CommandLine instead.
This library introduces a reader/parser for command-line application parameters, with a capability to deserialize the read parameters into a plain old CSharp object (POCO).
To use this library you would:
- Register the available parameters using a mapping-based mechanism.
- Pass the
string[]
parameters received from yourstatic void Main(string[] args)
method into the parser - Receive, from the parser, an instance of your POCO with its applicable properties populated.
The documentation and examples for this library may be found on the project wiki.
All source files within this project are released as open source software, under the terms of the MIT license.
This software is distributed in the hope that it will be useful, but please remember that:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.