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

Add @Unmatched annotation for unmatched arguments #253

Closed
remkop opened this issue Dec 22, 2017 · 0 comments
Closed

Add @Unmatched annotation for unmatched arguments #253

remkop opened this issue Dec 22, 2017 · 0 comments

Comments

@remkop
Copy link
Owner

remkop commented Dec 22, 2017

Currently unmatched command line arguments, when accepted, are available from the CommandLine instance via the getUnmatchedArguments method. However, the user-defined annotated command object does not have access to the CommandLine instance so it cannot call this method.

The unmatched arguments can be injected into a field annotated with @Unmatched.

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

No branches or pull requests

1 participant