X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=lib%2Fmcollective%2Foptionparser.rb;h=85f32c0bbeff399184cac6d010af1f978c71f5a3;hb=refs%2Fchanges%2F11%2F7111%2F9;hp=fdb02cc0af82d95ed3894f095315fdc7b8cb5ff6;hpb=176926bf9e3ff5de2ad044776820c064b933b80c;p=packages%2Ftrusty%2Fmcollective.git diff --git a/lib/mcollective/optionparser.rb b/lib/mcollective/optionparser.rb index fdb02cc..85f32c0 100644 --- a/lib/mcollective/optionparser.rb +++ b/lib/mcollective/optionparser.rb @@ -167,7 +167,15 @@ module MCollective raise "Cannot read the discovery file #{v}" unless File.readable?(v) @options[:discovery_method] = "flatfile" - @options[:discovery_options] = v + @options[:discovery_options] << v + end + + @parser.on("--publish_timeout TIMEOUT", Integer, "Timeout for publishing requests to remote agents.") do |pt| + @options[:publish_timeout] = pt + end + + @parser.on("--threaded", "Start publishing requests and receiving responses in threaded mode.") do |v| + @options[:threaded] = true end end