acorn-io / runtime

A simple application deployment framework built on Kubernetes
https://docs.acorn.io/
Apache License 2.0
1.14k stars 100 forks source link

Improve error message when invalid value is provided when setting `--ignore-user-labels-and-annotation` flag. #1082

Open sangee2004 opened 1 year ago

sangee2004 commented 1 year ago

acorn version v0.5.0-rc3-9-g4e16d33+4e16d334

acorn install --ignore-user-labels-and-annotations=yes
  ✗  ERROR:  invalid argument "yes" for "--ignore-user-labels-and-annotations" flag: strconv.ParseBool: parsing "yes": invalid syntax

This error message can be improved.

cjellick commented 1 year ago

This would apply to all bool flags. Not sure when/if we'll do this, so I'll move to backlog