Skip to content

Commit

Permalink
add -u debug switch
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Dec 7, 2008
1 parent 1447176 commit 04221b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bin/parkplace
Expand Up @@ -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:"

Expand Down

0 comments on commit 04221b9

Please sign in to comment.