1
0
Fork 0

Better logging of trailing flags

master
Philip O'Toole 1 year ago
parent 9b65b45065
commit 2c870f16c7

@ -500,7 +500,9 @@ func ParseFlags(name, desc string, build *BuildInfo) (*Config, error) {
// Ensure no args come after the data directory.
if flag.NArg() > 1 {
errorExit(1, "arguments after data directory are not accepted")
fmt.Fprintf(os.Stderr, "arguments after data directory (%s) are not accepted (%s)\n",
config.DataPath, flag.Args()[1:])
os.Exit(1)
}
if err := config.Validate(); err != nil {

Loading…
Cancel
Save