projects
/
lightning.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
19995: Skip GLM on variants below frequency threshold.
[lightning.git]
/
stats.go
diff --git
a/stats.go
b/stats.go
index 460eef47fb29b865b1c4dd05158b96a80ad0a1dc..2f9bd4192c9ea3fc7f3a29cf10db29ec2cdc1bc8 100644
(file)
--- a/
stats.go
+++ b/
stats.go
@@
-1,4
+1,8
@@
-package main
+// Copyright (C) The Lightning Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+package lightning
import (
"bufio"
import (
"bufio"
@@
-43,6
+47,9
@@
func (cmd *statscmd) RunCommand(prog string, args []string, stdin io.Reader, std
return 0
} else if err != nil {
return 2
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 != "" {
}
if *pprof != "" {