about summary refs log tree commit homepage
path: root/bin/zbatery
diff options
context:
space:
mode:
Diffstat (limited to 'bin/zbatery')
-rwxr-xr-xbin/zbatery5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/zbatery b/bin/zbatery
index 99ca46e..392e5c3 100755
--- a/bin/zbatery
+++ b/bin/zbatery
@@ -59,6 +59,11 @@ opts = OptionParser.new("", 24, '  ') do |opts|
     ENV["RACK_ENV"] = e
   end
 
+  opts.on("-N", "--no-default-middleware",
+          "do not load middleware implied by RACK_ENV") do |e|
+    rackup_opts[:no_default_middleware] = true
+  end
+
   opts.on("-D", "--daemonize", "run daemonized in the background") do |d|
     rackup_opts[:daemonize] = !!d
   end