aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/bin/math_server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'src/ruby/bin/math_server.rb')
-rw-r--r--src/ruby/bin/math_server.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ruby/bin/math_server.rb b/src/ruby/bin/math_server.rb
index a0f301c3e7..ed39144d7a 100644
--- a/src/ruby/bin/math_server.rb
+++ b/src/ruby/bin/math_server.rb
@@ -41,7 +41,7 @@ $LOAD_PATH.unshift(this_dir) unless $LOAD_PATH.include?(this_dir)
require 'forwardable'
require 'grpc'
-require 'math_services'
+require 'math.pb'
require 'optparse'
# Holds state for a fibonacci series
@@ -168,8 +168,8 @@ def main
'secure' => false
}
OptionParser.new do |opts|
- opts.banner = 'Usage: [--host <hostname>:<port>] [--secure|-s]'
- opts.on('--host HOST', '<hostname>:<port>') do |v|
+ opts.banner = 'Usage: [--host|-h <hostname>:<port>] [--secure|-s]'
+ opts.on('-h', '--host', '<hostname>:<port>') do |v|
options['host'] = v
end
opts.on('-s', '--secure', 'access using test creds') do |v|