aptible / aptible-cli

Command line interface to Aptible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apps:create -h/--help create apps called -h and --help

thomasvandoren opened this issue · comments

Repro steps:

$ aptible apps:create --help
App --help created!
$ aptible apps:create --help
Validation failed: Handle has already been taken
$ aptible apps:create -h
App -h created!
$ aptible apps:create -h
Validation failed: Handle has already been taken

Expected: Help information for apps:create is displayed
Actual: apps named -h and --help are created

The correct behavior is to call aptible help apps:create. It seems like unexpected behavior to create apps called -h or --help, though.

It's worth noting that this does not happen with apps:deprovision. With apps:deprovision it seems to get an argument parsing error:

$ aptible apps:deprovision -h
ERROR: "aptible apps:deprovision" was called with arguments ["-h"]
Usage: "aptible apps:deprovision"
$ aptible apps:deprovision --app -h
ERROR: "aptible apps:deprovision" was called with arguments ["-h"]
Usage: "aptible apps:deprovision"