bin: improve usage of the CLI tool.
authorJehan <jehan@girinstud.io>
Wed, 20 Jul 2022 21:18:32 +0000 (23:18 +0200)
committerJehan <jehan@girinstud.io>
Thu, 28 Jul 2022 14:13:18 +0000 (14:13 +0000)
commit237dd172ad715c807b902b3f3fdf5aa8b1dee44b
treed4fafeebe6cb79bb21556fbab9224d60f91d5607
parente3eb2430671e3947201f317a83dee07cf8b02b0e
bin: improve usage of the CLI tool.

- Add a --help/-h option.
- Detect invalid options (argument starting with '-').
- Support '--' option to indicate end of options. This can be
  particularly useful to set negative component values in floating point
  formats.
- Print usage in various error types (when they are of wrong
  syntax/option types), additionally to printing it when --help is
  called.
bin/babl.c