Adalennis opened a new issue, #9268:
URL: https://github.com/apache/hop/issues/9268
### Apache Hop version?
2.21.0-SNAPSHOT
### Java version?
Java 21
### Operating system
macOS
### What happened?
`hop import`, `hop search` and `hop naming-check` don't accept `-h`,
`--help` or `-V`:
$ ./hop import --help
picocli.CommandLine$UnmatchedArgumentException: Unknown option: '--help'
$ ./hop search -h foo
picocli.CommandLine$UnmatchedArgumentException: Unknown option: '-h'
$ ./hop naming-check -h
picocli.CommandLine$UnmatchedArgumentException: Unknown option: '-h'
$ ./hop-import.sh --help
Unknown option: '--help'
Usage: <main class> [-eflpv] ...
`hop search --help` without a search string fails earlier, with "Missing
required parameter: '<searchString>'". The usage these commands print lists
`-v, --version` but no `-h` or `-V`. Other commands (`hop run`, `hop conf`,
`hop export`, `hop server`, `hop driver install`) print their help.
All three classes (`HopImport`, `HopSearch`, `HopNamingCheck`) set
`mixinStandardHelpOptions = true` and also declare their own `-v, --version`
option with `versionHelp = true`. With picocli 4.7.7, a command that declares
its own `--version` doesn't get the standard help options at all, so `-h` and
`--help` are lost along with `-V`. A two-class test shows it: with
`mixinStandardHelpOptions = true` and an own `-v, --version`, the only option
is `-v/--version` and `-h` is an unknown option; without the own option,
`-h/--help` and `-V/--version` are there.
`HopImport` used to have its own `-h, --help`, which was removed in the
change for #5539 when the mixin was added. The hop-import and hop-search pages
tell users to run the command with `-h`.
### Issue Priority
Priority: 3
### Issue Component
Component: Documentation, Component: Hop Run, Component: CLI
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]