summaryrefslogtreecommitdiff
path: root/cmd/confgraph
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-02-27 16:11:51 +0000
committerNick White <git@njw.name>2020-02-27 16:11:51 +0000
commit9a35fe6d0e4c654697126939bfab8f0461d8780a (patch)
tree1f4c116c8d8c3249bda1955cdb1edc074d0b72fd /cmd/confgraph
parent7bfb7468fb7331443882c2f6d804de97df25ed0f (diff)
Improve usage description of confgraph and pagegraph
Diffstat (limited to 'cmd/confgraph')
-rw-r--r--cmd/confgraph/main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/confgraph/main.go b/cmd/confgraph/main.go
index ed5ce93..3ee2f95 100644
--- a/cmd/confgraph/main.go
+++ b/cmd/confgraph/main.go
@@ -12,6 +12,12 @@ import (
"rescribe.xyz/utils/pkg/hocr"
)
+const usage = `Usage: confgraph hocrdir graph.png
+
+confgraph creates a graph showing average word confidence of each
+page of hOCR in a directory.
+`
+
func walker(confs *[]*bookpipeline.Conf) filepath.WalkFunc {
return func(path string, info os.FileInfo, err error) error {
if info.IsDir() {
@@ -38,7 +44,7 @@ func walker(confs *[]*bookpipeline.Conf) filepath.WalkFunc {
func main() {
flag.Usage = func() {
- fmt.Fprintln(flag.CommandLine.Output(), "Usage: confgraph hocrdir graph.png")
+ fmt.Fprintln(flag.CommandLine.Output(), usage)
flag.PrintDefaults()
}
flag.Parse()