mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 07:10:10 +08:00
Fix color check
This commit is contained in:
parent
0ce394a11d
commit
385d02d232
@ -60,7 +60,7 @@ module Uplot
|
||||
params.padding = v
|
||||
end
|
||||
opt.on('-c', '--color VAL', 'color of the drawing', String) do |v|
|
||||
params.color = v =~ /\<[0-9]+\>/ ? v.to_i : v.to_sym
|
||||
params.color = v =~ /\A[0-9]+\z/ ? v.to_i : v.to_sym
|
||||
end
|
||||
opt.on('--[no-]labels', 'hide the labels', TrueClass) do |v|
|
||||
params.labels = v
|
||||
|
Loading…
Reference in New Issue
Block a user