Permalink
Browse files

add -u debug switch

  • Loading branch information...
1 parent 1447176 commit 04221b9d554eee96751fdbff819a3efc40a53410 @technoweenie committed Dec 7, 2008
Showing with 9 additions and 0 deletions.
  1. +9 −0 bin/parkplace
View
9 bin/parkplace
@@ -37,6 +37,15 @@ opts = OptionParser.new do |opts|
options.verbose = v
end
+ opts.on("-u", "--debug", "Debug Mode") do |v|
+ begin
+ require 'ruby-debug'
+ Debugger.start
+ rescue LoadError
+ end
+ $DEBUG = v
+ end
+
opts.separator ""
opts.separator "Common options:"

0 comments on commit 04221b9

Please sign in to comment.