exe/oas_divider in oas_divider-0.1.0 vs exe/oas_divider in oas_divider-0.2.0
- old
+ new
@@ -1,5 +1,10 @@
#!/usr/bin/env ruby
require 'oas_divider'
-OasDivider::Cli.new('swagger_original.yml').divide
+filename = ARGV[0]
+if filename.nil?
+ puts 'Please specify filename. ex) oas_divider swagger.yml'
+ return
+end
+OasDivider::Cli.new(filename).divide