Skip to content

Commit d9de0e4

Browse files
committed
fix(deisctl): parse global and command-specific options correctly
1 parent aba19e7 commit d9de0e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

deisctl/deisctl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func main() {
3030
func Command(argv []string) int {
3131
deisctlMotd := utils.DeisIfy("Deis Control Utility")
3232
usage := deisctlMotd + `
33-
Usage: deisctl <command> [<args>...] [options]
33+
Usage: deisctl [options] <command> [<args>...]
3434
3535
Commands, use "deisctl help <command>" to learn more:
3636
install install components, or the entire platform
@@ -62,7 +62,7 @@ Options:
6262
// pre-parse command-line arguments
6363
argv, helpFlag := parseArgs(argv)
6464
// give docopt an optional final false arg so it doesn't call os.Exit()
65-
args, err := docopt.Parse(usage, argv, false, Version, false, false)
65+
args, err := docopt.Parse(usage, argv, false, Version, true, false)
6666
if err != nil || len(args) == 0 {
6767
if helpFlag {
6868
fmt.Print(usage)

0 commit comments

Comments
 (0)