We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am having trouble validating multiple required Option, here's my example:
@Command(command = "dataset", group = "Dataset Commands") class DatasetCommands { @Command(command = "describe", description = "Describe a dataset by id") String findById(@Option(required = true, description = "Project id") String projectId, @Option(required = true, description = "Dataset id") String datasetId) { return String.format("Got projectId %s datasetId %s", projectId, datasetId); } }
So I launch the command with
dataset describe 1
I get
Got projectId 1 datasetId null
I would have expected to get something like "not all options are passed" exception but strange the command is executed with the second option null.
Any idea if I am doing something wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am having trouble validating multiple required Option, here's my example:
So I launch the command with
I get
I would have expected to get something like "not all options are passed" exception but strange the command is executed with the second option null.
Any idea if I am doing something wrong?
Thanks in advance!
The text was updated successfully, but these errors were encountered: