From 58f6580e3fa59c98bea210852df5bab0a6f68a00 Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Thu, 21 Jan 2021 18:23:01 +0900 Subject: [PATCH] Improved border desc --- lib/youplot/command/parser.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/youplot/command/parser.rb b/lib/youplot/command/parser.rb index 046989f..07b1d8f 100644 --- a/lib/youplot/command/parser.rb +++ b/lib/youplot/command/parser.rb @@ -70,7 +70,8 @@ module YouPlot parser.on('-h', '--height INT', Numeric, 'number of rows') do |v| params.height = v end - parser.on('-b', '--border STR', String, 'specify the style of the bounding box') do |v| + border_options = UnicodePlot::BORDER_MAP.keys.join(', ') + parser.on('-b', '--border STR', String, 'specify the style of the bounding box', "(#{border_options})") do |v| params.border = v.to_sym end parser.on('-m', '--margin INT', Numeric, 'number of spaces to the left of the plot') do |v|