mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
Revert "Accept hyphens as an output option"
This reverts commit dfc027d972
.
No need to change.
This commit is contained in:
parent
dfc027d972
commit
23bb767afe
@ -38,17 +38,13 @@ module YouPlot
|
||||
parser.on_tail('') # Add a blank line at the end
|
||||
parser.separator('')
|
||||
parser.on('Common options:')
|
||||
parser.on('-o', '--output [FILE]', 'file to output plots to [stdout]',
|
||||
'If no option is specified, plot will print to stderr') do |v|
|
||||
# uplot bar -o | foo
|
||||
# uplot bar -o - -w 30 | foo
|
||||
options[:output] = v.nil? || v == '-' ? $stdout : v
|
||||
end
|
||||
parser.on('-O', '--pass [FILE]', 'file to output input data to [stdout]',
|
||||
'for inserting YouPlot in the middle of Unix pipes') do |v|
|
||||
# | uplot bar -O | foo
|
||||
# | uplot bar -O - -w 30 | foo
|
||||
options[:pass] = v.nil? || v == '-' ? $stdout : v
|
||||
options[:pass] = v || $stdout
|
||||
end
|
||||
parser.on('-o', '--output [FILE]', 'file to output plots to [stdout]',
|
||||
'If no option is specified, plot will print to stderr') do |v|
|
||||
options[:output] = v || $stdout
|
||||
end
|
||||
parser.on('-d', '--delimiter DELIM', String, 'use DELIM instead of [TAB] for field delimiter') do |v|
|
||||
options[:delimiter] = v
|
||||
|
Loading…
Reference in New Issue
Block a user