lib/wrapp/cli.rb in wrapp-0.2.1 vs lib/wrapp/cli.rb in wrapp-0.2.2
- old
+ new
@@ -16,10 +16,16 @@
end
end
def run(argv)
app_path = parse_options(argv).first
- wrapp(app_path, config)
+ if app_path
+ wrapp(app_path, config)
+ else
+ warn 'ERROR: App path is missing!'
+ puts opt_parser
+ exit 2
+ end
end
def wrapp(*opts)
DMGBuilder.new(*opts).create
end