mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-07 23:51:12 +08:00
Fix options desc
This commit is contained in:
parent
774fa88872
commit
8d6d9158f2
@ -43,7 +43,7 @@ module YouPlot
|
|||||||
'If no option is specified, plot will print to stderr') do |v|
|
'If no option is specified, plot will print to stderr') do |v|
|
||||||
@options[:output] = v || $stdout
|
@options[:output] = v || $stdout
|
||||||
end
|
end
|
||||||
opt.on('-d', '--delimiter STR', String, 'use DELIM instead of TAB for field delimiter') do |v|
|
opt.on('-d', '--delimiter DELIM', String, 'use DELIM instead of [TAB] for field delimiter') do |v|
|
||||||
@options[:delimiter] = v
|
@options[:delimiter] = v
|
||||||
end
|
end
|
||||||
opt.on('-H', '--headers', TrueClass, 'specify that the input has header row') do |v|
|
opt.on('-H', '--headers', TrueClass, 'specify that the input has header row') do |v|
|
||||||
@ -208,7 +208,7 @@ module YouPlot
|
|||||||
parser.on_head('--canvas STR', String) do |v|
|
parser.on_head('--canvas STR', String) do |v|
|
||||||
params.canvas = v
|
params.canvas = v
|
||||||
end
|
end
|
||||||
parser.on_head('--xlim FLOAT,FLOAT', Array, 'plotting range for the x coordinate (eg. ') do |v|
|
parser.on_head('--xlim FLOAT,FLOAT', Array, 'plotting range for the x coordinate') do |v|
|
||||||
params.xlim = v.take(2)
|
params.xlim = v.take(2)
|
||||||
end
|
end
|
||||||
parser.on_head('--ylim FLOAT,FLOAT', Array, 'plotting range for the y coordinate') do |v|
|
parser.on_head('--ylim FLOAT,FLOAT', Array, 'plotting range for the y coordinate') do |v|
|
||||||
|
Loading…
Reference in New Issue
Block a user