-
Notifications
You must be signed in to change notification settings - Fork 3
Usage
wallymathieu edited this page Oct 30, 2011
·
4 revisions
To use the library in it’s simplest form you tell it to recognize a CustomerController:
ArgumentParser.Build()
.Recognize(typeof(CustomerController));
.Parse(args)
.Invoke(Console.Out);
Invoke tells the library to execute based on the Parsed input.
If your exe is called “businessapp.exe”
You can invoke the controller below
public class CustomerController
{
public string Add(string name)
{
return "invoking action Add on customercontroller with name : " + name;
}
}By executing:
businessapp.exe customer add —name “Erik Eriksson”