projects
/
lightning.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix some tests.
[lightning.git]
/
stats.go
diff --git
a/stats.go
b/stats.go
index 69e66da9a7529d0a53659a0dd95e228df333bc6e..2f9bd4192c9ea3fc7f3a29cf10db29ec2cdc1bc8 100644
(file)
--- a/
stats.go
+++ b/
stats.go
@@
-47,6
+47,9
@@
func (cmd *statscmd) RunCommand(prog string, args []string, stdin io.Reader, std
return 0
} else if err != nil {
return 2
+ } else if flags.NArg() > 0 {
+ err = fmt.Errorf("errant command line arguments after parsed flags: %v", flags.Args())
+ return 2
}
if *pprof != "" {