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

cannot detected the required parameter if no value input #508

Open
bglmmz opened this issue Nov 26, 2020 · 0 comments
Open

cannot detected the required parameter if no value input #508

bglmmz opened this issue Nov 26, 2020 · 0 comments

Comments

@bglmmz
Copy link

bglmmz commented Nov 26, 2020

..
 @Parameter(
          names = {"--name"},
          arity = 1,
          required = true)
private String name;

 @Parameter(
          names = {"--class"},
          arity = 1,
          required = true)
private String class;
...

the command line is:

MyTest add --name --class one

the error message is:

command 'add' not support option 'one'

but not the expected:

option 'name' cannot be empty

but if the command line is:

MyTest add  --class one --name

the error message is expected.

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