Permalink
Browse files

fix typo

  • Loading branch information...
1 parent 1d5cadf commit be0195e191aa38c476e38babfbccf4af224e4ce0 @allenwei committed Jan 2, 2011
Showing with 7 additions and 7 deletions.
  1. +2 −2 opt_parser.rb
  2. +4 −4 opt_parser2.rb
  3. +1 −1 thor_example
View
@@ -18,8 +18,8 @@
options[:envrionment] = envrionment
end
- opt.on("-d","--deamon","runing on deamon mode?") do
- options[:deamon] = true
+ opt.on("-d","--daemon","runing on daemon mode?") do
+ options[:daemon] = true
end
opt.on("-h","--help","help") do
View
@@ -15,12 +15,12 @@
opt.separator ""
opt.separator "Options"
- opt.on("-e ENVIRONMENT","--envrionment ENVIRONMENT",Numeric,"which enviroment you want server run") do |envrionment|
- options[:envrionment] = envrionment
+ opt.on("-e ENVIRONMENT","--environment ENVIRONMENT",Numeric,"which enviroment you want server run") do |environment|
+ options[:environment] = environment
end
- opt.on("-d","--deamon","runing on deamon mode?") do
- options[:deamon] = true
+ opt.on("-d","--daemon","runing on daemon mode?") do
+ options[:daemon] = true
end
opt.on("--delay N", Float, "Delay N seconds before executing") do |n|
View
@@ -6,7 +6,7 @@ require 'thor'
class ThorExample < Thor
desc "start", "start server"
method_option :environment,:default => "development", :aliases => "-e",:desc => "which enviroment you want server run."
- method_option :deamon, :type => :boolean, :default => false, :aliases => "-d",:desc => "runing on deamon mode?"
+ method_option :daemon, :type => :boolean, :default => false, :aliases => "-d",:desc => "runing on daemon mode?"
def start
puts "start #{options.inspect}"
end

0 comments on commit be0195e

Please sign in to comment.