Make sure that you completed the following actions to submitting this PR.
[x] There is an existing issue report for this PR. If not so, create one first.
[x] I have forked this project.
[x] I have created a feature branch.
[x] My changes have been committed.
[x] I have pushed my changes to the branch.
[ ] Running mvn checkstyle:check doesn't fail.
I can't run mvn checkstyle:check as all mvn commands fail for me. However i tested my IDEs build tool which worked and also didn't find any style issues. So this is something rather to my maven setup which can't be fixed rn.
Title
Added support for optional arguments.
Description
This adds support for optional arguments via an @Optional annotation.
If this annotation is applied to an argument this argument will be
skipped during argument parsing if the CommandArgument returns an
invalid Validator. The method will have a null passed instead.
This should be backwards compatible.
Issue Resolution
Closes #11
Proposed Changes
Adds optional arguments to the argument package
Makes the BasicCommand argument parser respect optional arguments by ignoring failures on them.
Thanks for contributing and applying the code style rules although the maven command doesn't work out for you.
I already read #43 and I will definitely have a look in it! Thank you.
Pull Request Template
Checklist
Make sure that you completed the following actions to submitting this PR.
mvn checkstyle:check
doesn't fail.I can't run
mvn checkstyle:check
as all mvn commands fail for me. However i tested my IDEs build tool which worked and also didn't find any style issues. So this is something rather to my maven setup which can't be fixed rn.Title
Added support for optional arguments.
Description
This adds support for optional arguments via an
@Optional
annotation. If this annotation is applied to an argument this argument will be skipped during argument parsing if theCommandArgument
returns an invalid Validator. The method will have a null passed instead.This should be backwards compatible.
Issue Resolution
Closes #11
Proposed Changes