projects
/
lightning.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix some tests.
[lightning.git]
/
filter.go
diff --git
a/filter.go
b/filter.go
index 9fe150e63df697b0b878cc495cc1623afb63059f..4c86c1b85b486f6b9bf2e6961ed6ce9606ae7c08 100644
(file)
--- a/
filter.go
+++ b/
filter.go
@@
-144,6
+144,9
@@
func (cmd *filtercmd) RunCommand(prog string, args []string, stdin io.Reader, st
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
}
cmd.output = stdout