This change moves glogging into the Mu command, so that `mu --help` actually shows the right thing. (Sadly, glog hijacks the command help.) It also adds an option --logtostderr that redirects glog output to the console.
17 lines
267 B
Go
17 lines
267 B
Go
// Copyright 2016 Marapongo, Inc. All rights reserved.
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/marapongo/mu/cmd"
|
|
)
|
|
|
|
func main() {
|
|
if err := cmd.NewMuCmd().Execute(); err != nil {
|
|
fmt.Fprintf(os.Stderr, "An error occurred: %v\n", err)
|
|
os.Exit(-1)
|
|
}
|
|
}
|