summaryrefslogtreecommitdiff
path: root/bin/chef-zero
diff options
context:
space:
mode:
authorSeth Vargo <sethvargo@gmail.com>2013-05-15 13:20:29 -0400
committerSeth Vargo <sethvargo@gmail.com>2013-05-15 13:20:29 -0400
commit5709c30083f89674b71ce8a7a5c9f81602cc97a3 (patch)
tree2fe759fe41979cc19ca8c7ed061737eb3b6f8395 /bin/chef-zero
parent6a95d1628006f6ae2d2e56cdd729b6733614278c (diff)
downloadchef-zero-5709c30083f89674b71ce8a7a5c9f81602cc97a3.tar.gz
Add -d flag to output requests
Diffstat (limited to 'bin/chef-zero')
-rwxr-xr-xbin/chef-zero6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/chef-zero b/bin/chef-zero
index 29de409..85f0849 100755
--- a/bin/chef-zero
+++ b/bin/chef-zero
@@ -18,13 +18,19 @@ OptionParser.new do |opts|
opts.on("-H", "--host HOST", "Host to bind to (default: 127.0.0.1)") do |value|
options[:host] = value
end
+
opts.on("-p", "--port PORT", Integer, "Port to listen on") do |value|
options[:port] = value
end
+
opts.on("--[no-]generate-keys", "Whether to generate actual keys or fake it (faster). Default: false.") do |value|
options[:generate_real_keys] = value
end
+ opts.on("-d", "--debug", "Show requests and debugging output") do |value|
+ options[:debug] = true
+ end
+
opts.on_tail("-h", "--help", "Show this message") do
puts opts
exit