-
Notifications
You must be signed in to change notification settings - Fork 172
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
Update JCommander to the latest version #782
Comments
Is it time to switch to picocli instead? |
I still think we should consider whether it makes sense to reuse the CLI class from Asciidoctor itself. That would avoid the code duplication. It might turn out to be a bad idea, but I think we should at least know why we don't. |
I think there is at least the Maybe we can filter out these parameters, handle them and remove them from the call, and then invoke the original Asciidoctor CLI runner. |
I don't know picocli, or any other good alternative. |
Fixed the semantic of the error message to reflect an error on the file name instead of a missing file. The unit test had issues: * Test name was misleading as it was not testing the absence of input file argument (which would trigger usage display) but the presence of an empty input file name * It was validating a bug in the parsing library fixed in JCommander 1.61 where empty arguments were lost - cbeust/jcommander#306 Fixes asciidoctor#782
Currently we're using org.jbeust:jcommander:1.35.
The latest version is org.jbeust:jcommands:1.72.
Simply upgrading the dependency results in some test failures, so it seems like there is some work to do,
The text was updated successfully, but these errors were encountered: