From 161c85045f3165eb309e702868af50791ef8664b Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Wed, 20 Jan 2021 23:39:17 +0900 Subject: [PATCH] -p option changes the meaning from padding to progress --- lib/youplot/command/parser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/youplot/command/parser.rb b/lib/youplot/command/parser.rb index 1d454ab..046989f 100644 --- a/lib/youplot/command/parser.rb +++ b/lib/youplot/command/parser.rb @@ -76,7 +76,7 @@ module YouPlot parser.on('-m', '--margin INT', Numeric, 'number of spaces to the left of the plot') do |v| params.margin = v end - parser.on('-p', '--padding INT', Numeric, 'space of the left and right of the plot') do |v| + parser.on('--padding INT', Numeric, 'space of the left and right of the plot') do |v| params.padding = v end parser.on('-c', '--color VAL', String, 'color of the drawing') do |v| @@ -85,7 +85,7 @@ module YouPlot parser.on('--[no-]labels', TrueClass, 'hide the labels') do |v| params.labels = v end - parser.on('--progress', TrueClass, 'progressive mode [experimental]') do |v| + parser.on('-p', '--progress', TrueClass, 'progressive mode [experimental]') do |v| options[:progressive] = v end parser.on('--encoding STR', String, 'Specify the input encoding') do |v|