lib/cms_scanner.rb in cms_scanner-0.0.25 vs lib/cms_scanner.rb in cms_scanner-0.0.26
- old
+ new
@@ -65,9 +65,11 @@
@controllers ||= NS::Controllers.new
end
def run
controllers.run
+ rescue OptParseValidator::NoRequiredOption => e
+ formatter.output('@usage', msg: e.message)
rescue => e
formatter.output('@scan_aborted',
reason: e.message,
trace: e.backtrace,
verbose: controllers.first.parsed_options[:verbose])