Moved verbose to flag.
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"github.com/kelseyhightower/envconfig"
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
var verbose = flag.Bool("verbose", false, "increase logging verbosity")
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)
|
||||
config := NewConfig()
|
||||
err := envconfig.Process("ITSLOG", config)
|
||||
|
||||
Reference in New Issue
Block a user