Commit 9e463e0b authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

core: errors on junk in the command line (#744)

We would silently ignore anything that we couldn't parse on the command
line, this change make this an error.

Fixes #743
parent 3c6964ac
......@@ -60,6 +60,10 @@ func Run() {
flag.Parse()
if len(flag.Args()) > 0 {
mustLogFatal(fmt.Errorf("extra command line arguments: %s", flag.Args()))
}
// Set up process log before anything bad happens
if logfile {
log.SetOutput(os.Stdout)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment