lib/rocket_job/cli.rb in rocketjob-6.0.0.rc1 vs lib/rocket_job/cli.rb in rocketjob-6.0.0.rc2
- old
+ new
@@ -231,10 +231,10 @@
server_ids
end
# Parse command line options placing results in the corresponding instance variables
def parse(argv)
- parser = OptionParser.new do |o|
+ parser = OptionParser.new do |o|
o.on("-n", "--name NAME", "Unique Name of this server (Default: host_name:PID)") do |arg|
Config.name = arg
end
o.on("-w", "--workers COUNT", "Number of workers (threads) to start") do |arg|
@max_workers = arg.to_i