Skip to content

Implement the logic necessary to Replace ParseAdd with OptionParser #31

@chrisK00

Description

@chrisK00

Example usage:

string[] options = { "-title", "-description" }; //the arguments that the user can pass in
string[] inputs = Console.ReadLine().Split(' '); //input from the user such as "-title hello world -description say hi"
var optionsValues = OptionParser.Parse(options, inputs, "-") //the "-" is to remove the prefix from the options when they are returned
optionsValues.TryGetValue(nameof(Todo.Title)) //use tryget to get an item from the dictionary

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions