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

Should throw UnmatchedArgumentException when not all positional parameters are assigned to a field #173

Closed
remkop opened this issue Aug 20, 2017 · 0 comments
Milestone

Comments

@remkop
Copy link
Owner

remkop commented Aug 20, 2017

For example:

// should throw exception when any command line args are specified
class ArityZero { @Parameters(arity = "0") List<String> params; } 

// should throw exception when two or more command line args are specified
class ArityOne { @Parameters(arity = "1") List<String> params; } 

// should throw exception when two or more command line args are specified
class SingleValue { @Parameters String str;  }

// should throw Ex for args: "A,B,C", "D", "E"
class Args { @Parameters(arity = "2..4", split = ",") String[] values; }
@remkop remkop added this to the 1.0.0 milestone Aug 20, 2017
@remkop remkop closed this as completed in 7dbe510 Aug 20, 2017
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