vitrivr / cineast

Cineast is a multi-feature content-based mulitmedia retrieval engine. It is capable of retrieving images, audio- and video sequences as well as 3d models based on edge or color sketches, textual descriptions and example objects.
MIT License
57 stars 50 forks source link

Standalone commands / CLI respect -h / --help for help #307

Closed sauterl closed 2 years ago

sauterl commented 2 years ago

Addresses #306 by slightly refactoring the current command hierarchy and introducing the following behaviour:

When the -h (or --help) option is given for a command (i.e. <dist> path/to/config.json <command> -h), the missing required options are listed and then the help message is shown on std err.

For the interactive CLI, the same logic applies, however the information is printed on std out with the colour red.

Important: This PR already contains the next version bump

sauterl commented 2 years ago

Thanks! This is weird though, I do have the proper style guide in my IDE activated - must've forgotten to reformat all touched files...