Skip to content

Commit

Permalink
ref(deisctl): use package version
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Fisher committed Dec 18, 2014
1 parent 4667371 commit 64cffd5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions deisctl/deisctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@ import (
"github.com/deis/deis/deisctl/backend/fleet"
"github.com/deis/deis/deisctl/client"
"github.com/deis/deis/deisctl/utils"
"github.com/deis/deis/version"

docopt "github.com/docopt/docopt-go"
)

const (
// Version of deisctl client
Version string = "1.2.0-dev"
)

// main exits with the return value of Command(os.Args[1:]), deferring all logic to
// a func we can test.
func main() {
Expand Down Expand Up @@ -62,7 +58,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, true, false)
args, err := docopt.Parse(usage, argv, false, version.Version, true, false)
if err != nil || len(args) == 0 {
if helpFlag {
fmt.Print(usage)
Expand Down

0 comments on commit 64cffd5

Please sign in to comment.