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

JHOVE doesn't handle chained command line flags properly #412

Open
carlwilson opened this issue Mar 21, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@carlwilson
Copy link
Member

commented Mar 21, 2019

JHOVE uses custom code for parsing command line parameters that doesn't support chaining flags. For example intuitively jhove -kr should enable checksumming and the use of raw data flags but this only happens if jhove -k -r is used.

@marhop

This comment has been minimized.

Copy link
Collaborator

commented Mar 21, 2019

If you haven't already settled on something else, I really like JCommander for CLI options.

@tledoux

This comment has been minimized.

Copy link
Contributor

commented Mar 22, 2019

JCommander seems indeed a well-supported library to do that. It has no extra-dependencies, is Apache 2-0 license, requires Java 8.

Another library that appears when searching is picocli: no extra-dependencies, Apache 2.0 license, works with Java 5. The comparison , made by the author itself, insists in the fact that it can be integrated as source (no dependency at all) and it Supports for clustered POSIX short options, which is what this issue is about...

@marhop

This comment has been minimized.

Copy link
Collaborator

commented Mar 23, 2019

Oops, you're right! I thought JCommander supported clustered options, but I haven't checked in a while (seems it does not). Indeed picocli looks nice, and it even supports autocomplete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.