Non-zero exit code when bin/astute executed with wrong arguments

This commit is contained in:
Evgeniy L 2013-05-07 19:43:59 +04:00
parent 2010fe7fa5
commit d7574a144e
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,8 @@ optparse.parse!(ARGV)
if opts[:filename].nil?
puts optparse
exit
ERROR_CODE_COMMAND_USAGE = 64
exit ERROR_CODE_COMMAND_USAGE
end
reporter = ConsoleReporter.new
@ -52,4 +53,3 @@ end
orchestrator = Astute::Orchestrator.new(deploy_engine, log_parsing=false)
orchestrator.deploy(reporter, environment['task_uuid'], environment['nodes'], environment['attributes'])
#orchestrator.verify_networks(reporter, task_id, nodes, networks)