Improved help messages

This commit is contained in:
kojix2 2020-11-14 23:09:49 +09:00
parent 406fb80377
commit f8ea11f0d0

View File

@ -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| 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 @fmt = v
end end
opt.on('--debug', TrueClass) do |v| opt.on('--debug', TrueClass, 'print preprocessed data') do |v|
@debug = v @debug = v
end end
yield opt if block_given? yield opt if block_given?
@ -101,17 +101,17 @@ module Uplot
Usage: uplot <command> [options] <in.tsv> Usage: uplot <command> [options] <in.tsv>
Commands: Commands:
barplot bar barplot bar draw a horizontal barplot
histogram hist histogram hist draw a horizontal histogram
lineplot line lineplot line draw a line chart
lineplots lines lineplots lines draw a line chart with multiple series
scatter s scatter s draw a scatter plot
density d density d draw a density plot
boxplot box boxplot box draw a horizontal boxplot
colors show the list of available colors colors show the list of available colors
count c baplot based on the number of occurrences count c draw a baplot based on the number of
(slower than `sort | uniq -c | sort -n -k1`) occurrences (slow)
MSG MSG
end end
end end