Skip to content

When passing empty -v in set goml does not return an error #8

@andrew-edgar

Description

@andrew-edgar

If using goml set and the value is not specified the incorrect usage is shown but the return code is 0 which causes scripts to not exit.

Can all incorrect usage messages produce a non 0 error?

coligo goml set -f eprops-test/properties.yml -p "template.version" -v
Incorrect Usage: flag needs an argument: -v
NAME:
   goml set - Set/Update property
USAGE:
   goml set [command options] [arguments...]
OPTIONS:
   --file value, -f value   path to YAML file
   --prop value, -p value   property path string - foo.bar.zoo
   --value value, -v value  value for the defined property
   --key value, -k value    private key file
   --dry-run, -d            print set result to stdout
   --json, -j               format output as json
➜  coligo echo $?
0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions