projects
/
lightning.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check for unparsed command line args.
[lightning.git]
/
plot.go
diff --git
a/plot.go
b/plot.go
index 98b7eece27ae48e5c15166ddae70c662f6c7cf3c..6deaff6fc7d01057b0b4cfd1c49537cbacc7edb0 100644
(file)
--- a/
plot.go
+++ b/
plot.go
@@
-47,6
+47,9
@@
func (cmd *pythonPlot) RunCommand(prog string, args []string, stdin io.Reader, s
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
}
runner := arvadosContainerRunner{