Module: Kettle::Family::CLI::ReturningMain
- Included in:
- Kettle::Family::CLI, BaseCommand
- Defined in:
- lib/kettle/family/cli.rb
Instance Method Summary collapse
Instance Method Details
#main(argv = []) ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/kettle/family/cli.rb', line 76 def main(argv = []) args = (argv) return 1 unless valid_argument_count?(args) run(*args) rescue SystemExit => error error.status rescue Error, OptionParser::ParseError => error stderr.puts("kettle-family: #{error.}") 1 end |