Thanks for decline, it's truly amazing.
We use it as part of a few of our applications and I just realized that when using CommandApp, if the parsing fails, we print the help but still return 0 as the exit code. See https://github.com/bkirwi/decline/blob/master/core/shared/src/main/scala/com/monovore/decline/CommandApp.scala#L53
We had not realized before today because the CommandIOApp returns a different exit code when parsing fails: https://github.com/bkirwi/decline/blob/master/effect/shared/src/main/scala/com/monovore/decline/effect/CommandIOApp.scala#L42
Would you be open to a PR to do sys.exit(1) instead?
Thanks for decline, it's truly amazing.
We use it as part of a few of our applications and I just realized that when using
CommandApp, if the parsing fails, we print the help but still return 0 as the exit code. See https://github.com/bkirwi/decline/blob/master/core/shared/src/main/scala/com/monovore/decline/CommandApp.scala#L53We had not realized before today because the
CommandIOAppreturns a different exit code when parsing fails: https://github.com/bkirwi/decline/blob/master/effect/shared/src/main/scala/com/monovore/decline/effect/CommandIOApp.scala#L42Would you be open to a PR to do
sys.exit(1)instead?