mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 07:10:10 +08:00
Rename create_parser -> create_default_parser
This commit is contained in:
parent
05c3b14acd
commit
b1df2ed544
@ -50,7 +50,7 @@ module Uplot
|
|||||||
@debug = false
|
@debug = false
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_parser
|
def create_default_parser
|
||||||
OptionParser.new do |opt|
|
OptionParser.new do |opt|
|
||||||
opt.program_name = 'uplot'
|
opt.program_name = 'uplot'
|
||||||
opt.version = Uplot::VERSION
|
opt.version = Uplot::VERSION
|
||||||
@ -106,8 +106,8 @@ module Uplot
|
|||||||
end
|
end
|
||||||
|
|
||||||
def parse_options(argv = ARGV)
|
def parse_options(argv = ARGV)
|
||||||
main_parser = create_parser
|
main_parser = create_default_parser
|
||||||
parsers = Hash.new { |h, k| h[k] = create_parser }
|
parsers = Hash.new { |h, k| h[k] = create_default_parser }
|
||||||
|
|
||||||
parsers[:barplot] = \
|
parsers[:barplot] = \
|
||||||
parsers[:bar]
|
parsers[:bar]
|
||||||
|
Loading…
Reference in New Issue
Block a user