Skip to content

Commit

Permalink
fix(deisctl): parse global and command-specific options correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Dec 16, 2014
1 parent aba19e7 commit d9de0e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deisctl/deisctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func main() {
func Command(argv []string) int {
deisctlMotd := utils.DeisIfy("Deis Control Utility")
usage := deisctlMotd + `
Usage: deisctl <command> [<args>...] [options]
Usage: deisctl [options] <command> [<args>...]
Commands, use "deisctl help <command>" to learn more:
install install components, or the entire platform
Expand Down Expand Up @@ -62,7 +62,7 @@ Options:
// pre-parse command-line arguments
argv, helpFlag := parseArgs(argv)
// give docopt an optional final false arg so it doesn't call os.Exit()
args, err := docopt.Parse(usage, argv, false, Version, false, false)
args, err := docopt.Parse(usage, argv, false, Version, true, false)
if err != nil || len(args) == 0 {
if helpFlag {
fmt.Print(usage)
Expand Down

0 comments on commit d9de0e4

Please sign in to comment.