projects
/
lightning.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix some tests.
[lightning.git]
/
annotate.go
diff --git
a/annotate.go
b/annotate.go
index 25651889aa464d0455cc089657b4f8fb4c699e88..00f1cad1556147c2b2ba31f2e8e3b4483ad02e20 100644
(file)
--- a/
annotate.go
+++ b/
annotate.go
@@
-57,6
+57,9
@@
func (cmd *annotatecmd) RunCommand(prog string, args []string, stdin io.Reader,
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 != "" {