mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
Fix screwed flag parsing
This commit is contained in:
parent
b94c5d4026
commit
8b2ffc40d2
@ -172,6 +172,9 @@ func Setup(c *cli.Context) error {
|
||||
)
|
||||
|
||||
client.DefaultClient = client.NewClient()
|
||||
|
||||
os.Args = os.Args[:1]
|
||||
|
||||
flag.Set("logtostderr", fmt.Sprintf("%v", c.Bool("logtostderr")))
|
||||
flag.Set("alsologtostderr", fmt.Sprintf("%v", c.Bool("alsologtostderr")))
|
||||
flag.Set("stderrthreshold", c.String("stderrthreshold"))
|
||||
@ -179,6 +182,7 @@ func Setup(c *cli.Context) error {
|
||||
flag.Set("log_dir", c.String("log_dir"))
|
||||
flag.Set("vmodule", c.String("vmodule"))
|
||||
flag.Set("v", c.String("v"))
|
||||
|
||||
flag.Parse()
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user