exe/acter in acter-0.1.0 vs exe/acter in acter-0.1.1
- old
+ new
@@ -13,9 +13,12 @@
opts.banner += "\n\nPerform HTTP requests defined by JSON schema\n\n"
opts.on("-sPATH", "--schema=PATH", URI, "Path to JSON schema") do |v|
schema_path = v.scheme ? v : Pathname.new(v.to_s)
end
+ opts.on("-S", "--[no-]show-status", :OPTIONAL, TrueClass, "Output response status code (default: yes)") do |v|
+ render_options[:show_status] = v
+ end
opts.on("-H", "--[no-]show-headers", :OPTIONAL, TrueClass, "Output response headers (default: no)") do |v|
render_options[:show_headers] = v
end
opts.on("-b", "--[no-]show-body", :OPTIONAL, TrueClass, "Output response body (default: yes)") do |v|
render_options[:show_body] = v