Skip to content

Invalid option/parsing error should show help in addition to exception #49

@Pitterling

Description

@Pitterling

running the hello_world.sh example from the 1.2 doc with an invalid option throws the error and exits .. it would be better to show the help in addition?

# sh test.sh -x
flags:WARN getopt: invalid option -- 'x'
 --
flags:FATAL unable to parse provided options with getopt.

parsing error should show help

# sh test.sh -h
USAGE: test.sh [flags] args
flags:
  -d,--[no]debug:  enable debug mode (default: false)
  -h,--help:  show this help (default: false)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions