Module: Lich::Main::ArgvOptions
- Defined in:
- documented/main/argv_options.rb
Defined Under Namespace
Modules: GameConnection, OptionParser, SideEffects
Class Method Summary collapse
-
.process_argv ⇒ Hash
Processes the command-line arguments for the Lich project.
Class Method Details
.process_argv ⇒ Hash
Processes the command-line arguments for the Lich project.
This method orchestrates the normalization, parsing, and application of command-line options.
393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 |
# File 'documented/main/argv_options.rb', line 393 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 |