summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-08-24 15:04:42 +0100
committerNick White <git@njw.name>2020-08-24 15:04:42 +0100
commit34dda838f09cd3c9d95d435e8fa8ac446401843f (patch)
tree69aa965084ef7549bf7e2bb4ca480bf75f7f1c9b
parent179bb4a20ad93d418e3e911f90f98b6099a3f0ef (diff)
[pggraph] have verbose printing include options it was run with
-rw-r--r--cmd/pggraph/main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/pggraph/main.go b/cmd/pggraph/main.go
index fd61761..9842efd 100644
--- a/cmd/pggraph/main.go
+++ b/cmd/pggraph/main.go
@@ -216,6 +216,10 @@ func main() {
}
if *verbose {
- fmt.Printf("%s %0.2f %0.2f\n", flag.Arg(0), miny, maxy)
+ v := ""
+ if *vertical {
+ v = " vertical"
+ }
+ fmt.Printf("%s %d%s %0.2f %0.2f\n", flag.Arg(0), *width, v, miny, maxy)
}
}