mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Rename usage path to command to just the command name
This commit is contained in:
parent
ea59177156
commit
9a83bd5006
5 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 ""
|
||||
|
|
|
@ -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 ""
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue