lib/vagrant-protobox/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 |opts|
            opts.banner = "Usage: vagrant protobox <subcommand> [<args>]"
            opts.separator ""
            opts.separator "Available subcommands:"
            keys = []
            @subcommands.each { |key, value| keys << key.to_s }
            keys.sort.each do |key|
              opts.separator "     #{key}"
            end
            opts.separator ""
            opts.separator "For help on any individual subcommand run `vagrant protobox <subcommand> -h`"
          end
          @env.ui.info(opts.help, :prefix => false)
        end
def help opts = OptionParser . new do | opts | opts . banner = "Usage: vagrant protobox <subcommand> [<args>]" opts . separator "" opts . separator "Available subcommands:" keys = [ ] @subcommands . each { | key , value | keys << key . to_s } keys . sort . each do | key | opts . separator "     #{key}" end opts . separator "" opts . separator "For help on any individual subcommand run `vagrant protobox <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.