Permalink
Browse files

+ console code refactored

  • Loading branch information...
1 parent 65366c1 commit 35930cab65695da43a019173713b24fa38b2520b @floere committed Nov 30, 2011
View
2 generators/prototypes/server/classic/script/console
@@ -2,4 +2,4 @@
# encoding: utf-8
#
require 'picky/console'
-Picky::Console.start *ARGV
+Picky::Console.start
View
2 server/lib/picky/console.rb
@@ -7,7 +7,7 @@ module Picky
#
class Console
- def self.start *args
+ def self.start args = ARGV
irb = 'irb'
require 'optparse'
View
2 server/test_project/script/console
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
#
require File.expand_path '../../../lib/picky/console', __FILE__
-Picky::Console.run *ARGV
+Picky::Console.start

0 comments on commit 35930ca

Please sign in to comment.