mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-07 15:41:12 +08:00
Improved help banner
Summary width 24
This commit is contained in:
parent
7b8213833f
commit
39166894a3
@ -26,6 +26,8 @@ module Uplot
|
|||||||
OptionParser.new do |opt|
|
OptionParser.new do |opt|
|
||||||
opt.program_name = 'uplot'
|
opt.program_name = 'uplot'
|
||||||
opt.version = Uplot::VERSION
|
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]',
|
opt.on('-O', '--pass [VAL]', 'file to output standard input data to [stdout]',
|
||||||
'for inserting uplot in the middle of Unix pipes') do |v|
|
'for inserting uplot in the middle of Unix pipes') do |v|
|
||||||
@pass = v || $stdout
|
@pass = v || $stdout
|
||||||
@ -90,12 +92,12 @@ module Uplot
|
|||||||
|
|
||||||
Program: uplot (Tools for plotting on the terminal)
|
Program: uplot (Tools for plotting on the terminal)
|
||||||
Version: #{Uplot::VERSION} (using UnicodePlot #{UnicodePlot::VERSION})
|
Version: #{Uplot::VERSION} (using UnicodePlot #{UnicodePlot::VERSION})
|
||||||
Author: kojix2 <2xijok@gmail.com>
|
|
||||||
Source: https://github.com/kojix2/uplot
|
Source: https://github.com/kojix2/uplot
|
||||||
|
|
||||||
Usage: uplot <command> [options]
|
Usage: uplot <command> [options]
|
||||||
|
|
||||||
Command: barplot bar
|
Commands:
|
||||||
|
barplot bar
|
||||||
histogram hist
|
histogram hist
|
||||||
lineplot line
|
lineplot line
|
||||||
lineplots lines
|
lineplots lines
|
||||||
@ -112,6 +114,7 @@ module Uplot
|
|||||||
def sub_parser
|
def sub_parser
|
||||||
@sub_parser ||= create_default_parser do |parser|
|
@sub_parser ||= create_default_parser do |parser|
|
||||||
parser.banner = <<~MSG
|
parser.banner = <<~MSG
|
||||||
|
|
||||||
Usage: uplot #{command} [options]
|
Usage: uplot #{command} [options]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
Loading…
Reference in New Issue
Block a user