maciejwalkowiak / just

Magical 🪄 command line toolkit for developing 🍃 Spring Boot apps
312 stars 6 forks source link

Build target literals inconsistent for native image builds #20

Closed odrotbohm closed 1 year ago

odrotbohm commented 1 year ago
$ just build native-image --quick

       ██╗██╗   ██╗███████╗████████╗
       ██║██║   ██║██╔════╝╚══██╔══╝
       ██║██║   ██║███████╗   ██║
  ██   ██║██║   ██║╚════██║   ██║
  ╚█████╔╝╚██████╔╝███████║   ██║
   ╚════╝  ╚═════╝ ╚══════╝   ╚═╝

Invalid value for positional parameter at index 0 (<buildTarget>): there is no target native-image. Choose one of: [image, native, jar, native_image]
Usage: just build [--quick] [--skip-tests] [<buildTarget>]
builds application
      [<buildTarget>]   one of: jar, native, image, native-image
      --quick           runs fast build, skip tests, skips docs generation and
                          all possible checks
      --skip-tests      skips tests

Note how I used native-image (with dash). The error message shows native_image, but the help shows native-image (with dash, again).

maciejwalkowiak commented 1 year ago

Thanks for reporting @odrotbohm!