Opsi I write too much bash
This commit is contained in:
parent
1794051342
commit
718eff2b23
|
@ -8,11 +8,11 @@ args = { verbose: false, ip: nil, port: nil }
|
|||
ARGV.each do |arg|
|
||||
if ['--help', '-h'].include?(arg)
|
||||
puts 'usage: teeworlds.rb [OPTIONS..] [host] [port]'
|
||||
echo 'options:'
|
||||
echo ' --help|-h show this help'
|
||||
echo ' --verbose|-v verbose output'
|
||||
echo 'example:'
|
||||
echo ' teeworlds.rb --verbose localhost 8303'
|
||||
puts 'options:'
|
||||
puts ' --help|-h show this help'
|
||||
puts ' --verbose|-v verbose output'
|
||||
puts 'example:'
|
||||
puts ' teeworlds.rb --verbose localhost 8303'
|
||||
exit(0)
|
||||
elsif ['--verbose', '-v'].include?(arg)
|
||||
args[:verbose] = true
|
||||
|
|
Loading…
Reference in a new issue