Skip to content

Commit

Permalink
fix(cmd): invalid flags no longer emit a weird message
Browse files Browse the repository at this point in the history
turns out we're just not supposed to import the flag package.
  • Loading branch information
b5 committed Feb 13, 2018
1 parent 6465192 commit 44657ee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cmd

import (
"flag"
"os"
"path/filepath"
"strings"
Expand Down Expand Up @@ -48,7 +47,6 @@ func Execute() {
}

func init() {
flag.Parse()
cobra.OnInitialize(initializeCLI)
RootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $QRI_PATH/config.json)")
RootCmd.PersistentFlags().BoolVarP(&noColor, "no-color", "c", false, "disable colorized output")
Expand Down

0 comments on commit 44657ee

Please sign in to comment.