Method: ALib::AbstractMain#run
- Defined in:
- lib/alib-0.5.1/main.rb
#run ⇒ Object
–}}}
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 |
# File 'lib/alib-0.5.1/main.rb', line 419 def run #--{{{ logcatch do begin pre_run pre_parse_argv parse_argv post_parse_argv pre_init_logging init_logging post_init_logging initialize pre_main status = main post_main post_run exit(exit_status ? exit_status : (status ? EXIT_SUCCESS : EXIT_FAILURE)) rescue Errno::EPIPE STDOUT.tty? ? raise : exit(EXIT_FAILURE) end end #--}}} end |