From dbbff1dc3a69de666e7ea8cf48815c42f34ecf5b Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Tue, 19 Jan 2021 14:40:36 +0900 Subject: [PATCH] Improve bar xscale option --- lib/youplot/command/parser.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/youplot/command/parser.rb b/lib/youplot/command/parser.rb index 02a29ae..c4dafa5 100644 --- a/lib/youplot/command/parser.rb +++ b/lib/youplot/command/parser.rb @@ -153,6 +153,8 @@ module YouPlot Options for #{command}: MSG + xscale_options = UnicodePlot::ValueTransformer::PREDEFINED_TRANSFORM_FUNCTIONS.keys.join(', ') + case command # If you type only `uplot` in the terminal. @@ -165,7 +167,7 @@ module YouPlot parser.on_head('--symbol VAL', String, 'character to be used to plot the bars') do |v| params.symbol = v end - parser.on_head('--xscale VAL', String, 'axis scaling') do |v| + parser.on_head('--xscale VAL', String, "axis scaling (#{xscale_options})") do |v| params.xscale = v end parser.on_head('--fmt VAL', String, 'xy : header is like x, y...', 'yx : header is like y, x...') do |v|