Module: Lich::Main::ArgvOptions
- Defined in:
- documented/main/argv_options.rb
Overview
Orchestrates ARGV processing: parsing -> validation -> handler execution -> side effects
Defined Under Namespace
Modules: GameConnection, OptionParser, SideEffects
Class Method Summary collapse
-
.process_argv ⇒ Object
Main orchestrator: Step 1-4 of ARGV processing.
Class Method Details
.process_argv ⇒ Object
Main orchestrator: Step 1-4 of ARGV processing
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 |
# File 'documented/main/argv_options.rb', line 596 def self.process_argv # Step 1: Clean launcher.exe ARGV.delete_if { |arg| arg =~ /launcher\.exe/i } begin ArgNormalization.normalize!(ARGV) rescue ArgumentError => e $stderr.puts "error: #{e.}" exit 1 end # Step 2: Handle early-exit CLI operations (now in lib/common/cli/cli_orchestration.rb) Lich::Common::CLI::CLIOrchestration.execute # Step 3: Parse normal options and build @argv_options = ArgvOptions::OptionParser.execute # Step 4: Apply side effects and handle special cases = ArgvOptions::SideEffects.execute() # Step 5: Handle game connection configuration = ArgvOptions::GameConnection.execute() end |