diff options
author | Seth Vargo <sethvargo@gmail.com> | 2013-05-15 13:20:29 -0400 |
---|---|---|
committer | Seth Vargo <sethvargo@gmail.com> | 2013-05-15 13:20:29 -0400 |
commit | 5709c30083f89674b71ce8a7a5c9f81602cc97a3 (patch) | |
tree | 2fe759fe41979cc19ca8c7ed061737eb3b6f8395 /bin | |
parent | 6a95d1628006f6ae2d2e56cdd729b6733614278c (diff) | |
download | chef-zero-5709c30083f89674b71ce8a7a5c9f81602cc97a3.tar.gz |
Add -d flag to output requests
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chef-zero | 6 |
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 |