lib/vagrant-orchestrate/command/root.rb
# Prints the help out for this command
Prints the help out for this command
Prints the help out for this command
def help
          opts = OptionParser.new do |o|
            o.banner = "Usage: vagrant orchestrate <subcommand> [<args>]"
            o.separator ""
            o.separator "Available subcommands:"
            keys = []
            @subcommands.each { |key, _value| keys << key.to_s }
            keys.sort.each do |key|
              o.separator "     #{key}"
            end
            o.separator ""
            o.separator "For help on any individual subcommand run `vagrant orchestrate <subcommand> -h`"
          end
          @env.ui.info(opts.help, prefix: false)
        end
def help opts = OptionParser . new do | o | o . banner = "Usage: vagrant orchestrate <subcommand> [<args>]" o . separator "" o . separator "Available subcommands:" keys = [ ] @subcommands . each { | key , _value | keys << key . to_s } keys . sort . each do | key | o . separator "     #{key}" end o . separator "" o . separator "For help on any individual subcommand run `vagrant orchestrate <subcommand> -h`" end @env . ui . info ( opts . help , prefix : false ) end
Prints the help out for this command
Prints the help out for this command
# Add the available subcommands as separators in order to print them # out as well.