mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-09-24 14:58:10 +08:00
Rename create_parser -> create_default_parser
This commit is contained in:
@@ -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]
|
||||||
|
Reference in New Issue
Block a user