Refactor CLI usage into CLI.run!:
* Add Producer::Core::CLI::ArgumentError class; * Raise ArgumentError in CLI.new when recipe is missing; * Remove #check_arguments! and #print_usage_and_exit, move code into .run! method.
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
|
||||
require 'producer/core'
|
||||
|
||||
Producer::Core::CLI.new(ARGV).run!
|
||||
Producer::Core::CLI.run!(ARGV)
|
||||
|
Reference in New Issue
Block a user