lib/cli/runner.rb in af-0.3.12.3 vs lib/cli/runner.rb in af-0.3.13.beta.5
- old
+ new
@@ -46,9 +46,13 @@
# generic tracing and debugging
opts.on('-t [TKEY]') { |tkey| @options[:trace] = tkey || true }
opts.on('--trace [TKEY]') { |tkey| @options[:trace] = tkey || true }
+ # start application in debug mode
+ opts.on('-d [MODE]') { |mode| @options[:debug] = mode || "run" }
+ opts.on('--debug [MODE]') { |mode| @options[:debug] = mode || "run" }
+
opts.on('-q', '--quiet') { @options[:quiet] = true }
# Don't use builtin zip
opts.on('--no-zip') { @options[:nozip] = true }
opts.on('--nozip') { @options[:nozip] = true }