diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2010-02-02 16:16:26 -0800 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-02-02 16:16:26 -0800 |
commit | 9a83bd5006b6f996cbd68045d2d4d7f7dac24de1 (patch) | |
tree | 77e4db322c7a32b37030506a466b06f397697e57 /railties/lib/rails | |
parent | ea5917715657681c7cb2bbb5f793b9aea29d0609 (diff) | |
download | rails-9a83bd5006b6f996cbd68045d2d4d7f7dac24de1.tar.gz rails-9a83bd5006b6f996cbd68045d2d4d7f7dac24de1.tar.bz2 rails-9a83bd5006b6f996cbd68045d2d4d7f7dac24de1.zip |
Rename usage path to command to just the command name
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/commands/performance/benchmarker.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/commands/performance/profiler.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/commands/plugin.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/commands/runner.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators.rb | 3 |
5 files changed, 5 insertions, 6 deletions
diff --git a/railties/lib/rails/commands/performance/benchmarker.rb b/railties/lib/rails/commands/performance/benchmarker.rb index dfba4bf034..ad84d94dbf 100644 --- a/railties/lib/rails/commands/performance/benchmarker.rb +++ b/railties/lib/rails/commands/performance/benchmarker.rb @@ -1,5 +1,5 @@ if ARGV.empty? - puts "Usage: ./script/performance/benchmarker [times] 'Person.expensive_way' 'Person.another_expensive_way' ..." + puts "Usage: benchmarker [times] 'Person.expensive_way' 'Person.another_expensive_way' ..." exit 1 end diff --git a/railties/lib/rails/commands/performance/profiler.rb b/railties/lib/rails/commands/performance/profiler.rb index aaa075018c..50ae411166 100644 --- a/railties/lib/rails/commands/performance/profiler.rb +++ b/railties/lib/rails/commands/performance/profiler.rb @@ -1,5 +1,5 @@ if ARGV.empty? - $stderr.puts "Usage: ./script/performance/profiler 'Person.expensive_method(10)' [times] [flat|graph|graph_html]" + $stderr.puts "Usage: profiler 'Person.expensive_method(10)' [times] [flat|graph|graph_html]" exit(1) end diff --git a/railties/lib/rails/commands/plugin.rb b/railties/lib/rails/commands/plugin.rb index 159db707e7..af12df1425 100644 --- a/railties/lib/rails/commands/plugin.rb +++ b/railties/lib/rails/commands/plugin.rb @@ -295,7 +295,7 @@ module Commands def options OptionParser.new do |o| o.set_summary_indent(' ') - o.banner = "Usage: #{@script_name} [OPTIONS] command" + o.banner = "Usage: plugin [OPTIONS] command" o.define_head "Rails plugin manager." o.separator "" diff --git a/railties/lib/rails/commands/runner.rb b/railties/lib/rails/commands/runner.rb index 4487d2e7b1..606e04483f 100644 --- a/railties/lib/rails/commands/runner.rb +++ b/railties/lib/rails/commands/runner.rb @@ -5,7 +5,7 @@ code_or_file = nil ARGV.clone.options do |opts| script_name = File.basename($0) - opts.banner = "Usage: #{$0} [options] ('Some.ruby(code)' or a filename)" + opts.banner = "Usage: runner [options] ('Some.ruby(code)' or a filename)" opts.separator "" diff --git a/railties/lib/rails/generators.rb b/railties/lib/rails/generators.rb index 8c54014fcb..1f380970d0 100644 --- a/railties/lib/rails/generators.rb +++ b/railties/lib/rails/generators.rb @@ -175,8 +175,7 @@ module Rails groups[base] << namespace end - puts "Usage:" - puts " script/generate GENERATOR [args] [options]" + puts "Usage: generate GENERATOR [args] [options]" puts puts "General options:" puts " -h, [--help] # Print generators options and usage" |