summaryrefslogtreecommitdiff
path: root/cmd/pagegraph
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/pagegraph
parent7bfb7468fb7331443882c2f6d804de97df25ed0f (diff)
Improve usage description of confgraph and pagegraph
Diffstat (limited to 'cmd/pagegraph')
-rw-r--r--cmd/pagegraph/main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/pagegraph/main.go b/cmd/pagegraph/main.go
index a89c7a3..5b6b35f 100644
--- a/cmd/pagegraph/main.go
+++ b/cmd/pagegraph/main.go
@@ -11,10 +11,16 @@ import (
"rescribe.xyz/utils/pkg/hocr"
)
+const usage = `Usage: pagegraph [-l] file.hocr graph.png
+
+pagegraph creates a graph showing average confidence of each
+word in a page of hOCR.
+`
+
func main() {
lines := flag.Bool("l", false, "use line confidence instead of word confidence")
flag.Usage = func() {
- fmt.Fprintln(flag.CommandLine.Output(), "Usage: pagegraph [-l] file.hocr graph.png")
+ fmt.Fprintln(flag.CommandLine.Output(), usage)
flag.PrintDefaults()
}
flag.Parse()