in lib/twurl/cli.rb [231:243]
def data
on('-d', '--data [data]', 'Sends the specified data in a POST request to the HTTP server.') do |data|
if options.args.count { |item| /^content-type:\s+application\/json/i.match(item) } > 0
options.json_data = true
options.data = data
else
CGI.parse(data).each_pair do |key, value|
options.data[key] = value.first
end
end
end
end