Class: TECSCDE::Command
Instance Method Summary collapse
-
#initialize ⇒ Command
constructor
A new instance of Command.
- #run(argv) ⇒ Object
Constructor Details
#initialize ⇒ Command
Returns a new instance of Command.
7 8 |
# File 'lib/tecscde/command.rb', line 7 def initialize end |
Instance Method Details
#run(argv) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/tecscde/command.rb', line 10 def run(argv) $b_tate = true # Bool: true if vertical style $b_force_apply_tool_info = false # Bool: force to apply tool_info additional_option_parser = proc do |parser| parser.on("--base_dir=dir", "base directory (tecscde only)") do |dir| $base_dir[dir] = true end parser.on("--force-apply-tool_info", "force to apply tool_info, even if validation failed. this might cause ruby exception and stop tecscde") do $b_force_apply_tool_info = true end parser.on("--tate", "vertical (tate) style (tecscde only)") do $b_tate = true end parser.on("--yoko", "horizontal (yoko) style (tecscde only)") do $b_tate = false end end TECSGEN.init(additional_option_parser) tecsgen = TECSGEN.new tecsgen.run1 TECSCDE.main(tecsgen) end |