From f8ea11f0d0609620b914e3b692b561089ba2f8d3 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sat, 14 Nov 2020 23:09:49 +0900 Subject: [PATCH] Improved help messages --- lib/uplot/command/parser.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/uplot/command/parser.rb b/lib/uplot/command/parser.rb index 0317db8..f7fc2e8 100644 --- a/lib/uplot/command/parser.rb +++ b/lib/uplot/command/parser.rb @@ -81,7 +81,7 @@ module Uplot opt.on('--fmt VAL', String, 'xyxy : header is like x1, y1, x2, y2, x3, y3...', 'xyy : header is like x, y1, y2, y2, y3...') do |v| @fmt = v end - opt.on('--debug', TrueClass) do |v| + opt.on('--debug', TrueClass, 'print preprocessed data') do |v| @debug = v end yield opt if block_given? @@ -101,17 +101,17 @@ module Uplot Usage: uplot [options] Commands: - barplot bar - histogram hist - lineplot line - lineplots lines - scatter s - density d - boxplot box + barplot bar draw a horizontal barplot + histogram hist draw a horizontal histogram + lineplot line draw a line chart + lineplots lines draw a line chart with multiple series + scatter s draw a scatter plot + density d draw a density plot + boxplot box draw a horizontal boxplot colors show the list of available colors - count c baplot based on the number of occurrences - (slower than `sort | uniq -c | sort -n -k1`) + count c draw a baplot based on the number of + occurrences (slow) MSG end end