diff options
-rw-r--r-- | coremain/run.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/coremain/run.go b/coremain/run.go index 85024efcc..837a51c77 100644 --- a/coremain/run.go +++ b/coremain/run.go @@ -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) |