1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

make bad flags exit with proper status code

This commit is contained in:
Craig Peterson
2017-09-15 09:59:43 -04:00
parent 4aac517d62
commit 63d496b4c7
2 changed files with 7 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package main
import (
"fmt"
"log"
"os"
"strconv"
"time"
@@ -14,7 +15,7 @@ import (
func main() {
log.SetFlags(log.LstdFlags | log.Lshortfile)
commands.Run(versionString())
os.Exit(commands.Run(versionString()))
}
// Version management. 2 Goals: