Skip to content

Commit

Permalink
Fix header shown in help: Merb is not longer 'Mongrel + Erb, a lightw…
Browse files Browse the repository at this point in the history
…eight replacement for ActionPack' but a framework on it's own.
  • Loading branch information
michaelklishin committed Apr 22, 2008
1 parent 08fdcc9 commit a397e37
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/merb-core/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def to_hash
# ==== Returns
# String:: The config as YAML.
def to_yaml
@configuration.to_yaml
@configuration.to_yaml
end

# Sets up the configuration by storing the given settings.
Expand Down Expand Up @@ -121,7 +121,7 @@ def parse_args(argv = ARGV)
opts.release = Merb::RELEASE

opts.banner = "Usage: merb [uGdcIpPhmailLerkKX] [argument]"
opts.define_head "Merb Mongrel+ Erb. Lightweight replacement for ActionPack."
opts.define_head "Merb. Pocket rocket web framework"
opts.separator '*'*80
opts.separator 'If no flags are given, Merb starts in the foreground on port 4000.'
opts.separator '*'*80
Expand Down Expand Up @@ -169,7 +169,7 @@ def parse_args(argv = ARGV)
opts.on("-i", "--irb-console", "This flag will start merb in irb console mode. All your models and other classes will be available for you in an irb session.") do |console|
options[:adapter] = 'irb'
end

opts.on("-S", "--sandbox", "This flag will enable a sandboxed irb console. If your ORM supports transactions, all edits will be rolled back on exit.") do |sandbox|
options[:sandbox] = true
end
Expand All @@ -186,7 +186,7 @@ def parse_args(argv = ARGV)
options[:environment] = env
end

opts.on("-r", "--script-runner ['RUBY CODE'| FULL_SCRIPT_PATH]",
opts.on("-r", "--script-runner ['RUBY CODE'| FULL_SCRIPT_PATH]",
"Command-line option to run scripts and/or code in the merb app.") do |code_or_file|
options[:runner_code] = code_or_file
options[:adapter] = 'runner'
Expand All @@ -207,7 +207,7 @@ def parse_args(argv = ARGV)
options[:use_mutex] = false
else
options[:use_mutex] = true
end
end
end

opts.on("-D", "--debugger", "Run merb using rDebug.") do
Expand All @@ -223,7 +223,7 @@ def parse_args(argv = ARGV)
end

opts.on("-?", "-H", "--help", "Show this help message") do
puts opts
puts opts
exit
end
end
Expand All @@ -250,7 +250,7 @@ def parse_args(argv = ARGV)
def configure(&block)
ConfigBlock.new(self, &block) if block_given?
end

# Allows retrieval of single key config values via Merb.config.<key>
# Allows single key assignment via Merb.config.<key> = ...
#
Expand Down

0 comments on commit a397e37

Please sign in to comment.