mirror of https://github.com/knative/client.git
Fix flag parse error by calling flag.Parse first (#42)
* Fix flag parse error by calling flag.Parse Fixes https://github.com/knative/client/issues/37 * Fix workaround for parse error
This commit is contained in:
parent
a68d11e9b2
commit
72ec64390b
|
|
@ -15,6 +15,7 @@
|
|||
package commands
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
|
|
@ -73,6 +74,9 @@ Eventing: Manage event subscriptions and channels. Connect up event sources.`,
|
|||
rootCmd.AddCommand(NewServiceCommand(p))
|
||||
rootCmd.AddCommand(NewRevisionCommand(p))
|
||||
rootCmd.AddCommand(NewCompletionCommand(p))
|
||||
|
||||
// For glog parse error.
|
||||
flag.CommandLine.Parse([]string{})
|
||||
return rootCmd
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue