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

Improved <COMMAND> --help #25

Open
hoijui opened this issue Sep 18, 2024 · 1 comment
Open

Improved <COMMAND> --help #25

hoijui opened this issue Sep 18, 2024 · 1 comment

Comments

@hoijui
Copy link

hoijui commented Sep 18, 2024

When using e.g. owl write --help or owl write -h or owl write, one gets:

 $ java -jar cli/build/libs/owl-cli-snapshot.jar write --help
18:33:59.822 [main] DEBUG org.apache.jena.riot.system.stream.JenaIOEnvironment -- Failed to find configuration: location-mapping.ttl;location-mapping.rdf;etc/location-mapping.rdf;etc/location-mapping.ttl
Error: Missing required parameter: 'INPUT'
Usage: owl write [-v] [--alignObjects] [--alignPredicates]
                 [--doNotInsertFinalNewline] [--firstPredicateInNewLine]
                 [--keepUnusedPrefixes] [--useCommaByDefault]
                 [--useLongLiterals] [--writeRdfType]
                 [--afterComma=<afterCommaGapStyle>]
                 [--anonymousNodeIdPattern=<anonymousNodeIdPattern>]
                 [--continuationIndentSize=<continuationIndentSize>]
                 [--doubleFormat=<doubleFormatPattern>] [--encoding=<encoding>]
                 [--endOfLine=<endOfLineStyle>] [-i=<inputFormat>]
                 [--indent=<indentStyle>] [--indentSize=<indentSize>]
                 [-o=<outputFormat>] [--prefixAlign=<alignPrefixes>]
                 [--commaForPredicate=<commaForPredicate>]...
                 [--noCommaForPredicate=<noCommaForPredicate>]...
                 [--objectOrder=<objectOrder>]... [-p=<String=URI>]...
                 [--predicateOrder=<predicateOrder>]...
                 [--prefixOrder=<prefixOrder>]...
                 [--subjectOrder=<subjectOrder>]... INPUT [OUTPUT]

There is no warning about -h or --help being an unknown option, nor that one should use owl help write instead, and the shown Usage info is not enough to use the CLI (while the output of owl help write is).
Could this somehow be improved, and if yes, how best to do that?

@atextor
Copy link
Owner

atextor commented Sep 18, 2024

Any combination of:

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

2 participants