old_contents: from cmd3.shell import command
  
  
  class info:
  
      def print_info(self):
          """prints some info that the user may find useful"""
          
          d = dir(self)
          self.plugins = []
          for key in d:
              if key.startswith("info_"):
                  self.plugins.append(key)
  
          for key in self.plugins:
              if self.echo:
                  print "> %s" % key.replace("_", " ", 1)
              exec("self.%s()" % key)
  
      @command
      def do_info(self, arg, arguments):
          """
          Usage:
                 info
  
          Prints some internal information about the shell
  
          """
          print 70 * "-"
          print 'DIR'
          print 70 * "-"
          for element in dir(self):
              print element
          print 70 * "-"
          self.print_info()
  
new_contents: from cmd3.shell import command
  
  
  class info:
  
      def print_info(self):
          """prints some info that the user may find useful"""
          
          d = dir(self)
          self.plugins = []
          for key in d:
              if key.startswith("info_"):
                  self.plugins.append(key)
  
          for key in self.plugins:
              if self.echo:
                  print "> %s" % key.replace("_", " ", 1)
              exec("self.%s()" % key)
  
      @command
      def do_info(self, arg, arguments):
          """
          Usage:
                 info [--all]
                 
          Options:
                 --all  -a   more extensive information 
  
          Prints some internal information about the shell
  
          """
          if arguments["--all"]:
              print 70 * "-"
              print 'DIR'
              print 70 * "-"
              for element in dir(self):
                  print element
              print 70 * "-"
          self.print_info()
  
subject: add -a option to info