From 9fcb647aa518a00fd39b2b171ba503d661a2a07e Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Tue, 19 Jan 2021 15:14:57 +0900 Subject: [PATCH] Improve hist closed options desc --- README.md | 2 +- lib/youplot/command/parser.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 984f30a..1492e3c 100644 --- a/README.md +++ b/README.md @@ -201,7 +201,7 @@ Usage: uplot histogram [options] Options for histogram: --symbol VAL character to be used to plot the bars - --closed VAL + --closed VAL side of the intervals to be closed [left] -n, --nbins VAL approximate number of bins Options: diff --git a/lib/youplot/command/parser.rb b/lib/youplot/command/parser.rb index 86a93ae..09a5a22 100644 --- a/lib/youplot/command/parser.rb +++ b/lib/youplot/command/parser.rb @@ -183,7 +183,7 @@ module YouPlot parser.on_head('-n', '--nbins VAL', Numeric, 'approximate number of bins') do |v| params.nbins = v end - parser.on_head('--closed VAL', String) do |v| + parser.on_head('--closed VAL', String, 'side of the intervals to be closed [left]') do |v| params.closed = v end parser.on_head('--symbol VAL', String, 'character to be used to plot the bars') do |v|