Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute binding #8

Closed
natemcmaster opened this issue Oct 18, 2017 · 1 comment
Closed

Attribute binding #8

natemcmaster opened this issue Oct 18, 2017 · 1 comment
Assignees
Milestone

Comments

@natemcmaster
Copy link
Owner

natemcmaster commented Oct 18, 2017

Minimal spec

public class Program
{
    [Argument(0)]
    public string Command { get; set; }

    [Option]
    public string Message { get; set; }

    [Option("-F <file>")]
    public string File { get; set; }

    [Option]
    public bool Amend { get; set; }

    [Option("--no-edit")]
    public bool NoEdit { get; set; }

    public static void Main(string[] args)
     => CommandLineApplication.Execute<Program>(args);
    
    private void OnExecute()
    {}
}
@natemcmaster
Copy link
Owner Author

Initial version of this is available in 2.1.0-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant