Improved help banner

Summary width 24
This commit is contained in:
kojix2 2020-10-12 16:14:51 +09:00
parent 7b8213833f
commit 39166894a3

View File

@ -26,6 +26,8 @@ module Uplot
OptionParser.new do |opt|
opt.program_name = 'uplot'
opt.version = Uplot::VERSION
opt.summary_width = 24
opt.on_tail('') # Add a blank line at the end
opt.on('-O', '--pass [VAL]', 'file to output standard input data to [stdout]',
'for inserting uplot in the middle of Unix pipes') do |v|
@pass = v || $stdout
@ -90,12 +92,12 @@ module Uplot
Program: uplot (Tools for plotting on the terminal)
Version: #{Uplot::VERSION} (using UnicodePlot #{UnicodePlot::VERSION})
Author: kojix2 <2xijok@gmail.com>
Source: https://github.com/kojix2/uplot
Usage: uplot <command> [options]
Command: barplot bar
Commands:
barplot bar
histogram hist
lineplot line
lineplots lines
@ -112,6 +114,7 @@ module Uplot
def sub_parser
@sub_parser ||= create_default_parser do |parser|
parser.banner = <<~MSG
Usage: uplot #{command} [options]
Options: