code: def list(self, opts):
          
  
          argv = opts.args
          count = len(argv)
  
          # unflagged arguments are conf, stanza, key. In this order
          # but all are optional
          cpres = True if count > 0 else False
          spres = True if count > 1 else False
          kpres = True if count > 2 else False 
          
          if not cpres:
              # List out the available confs
              for conf in self.service.confs: 
                  print(conf.name)
          else:
              # Print out detail on the requested conf
              # check for optional stanza, or key requested (or all)
              name = argv[0]
              conf = self.service.confs[name]
              
              for stanza in conf:
                  if (spres and argv[1] == stanza.name) or not spres:
                      print("[%s]" % stanza.name)
                      for key, value in six.iteritems(stanza.content):
                          if (kpres and argv[2] == key) or not kpres:
                              print("%s = %s" % (key, value))
                  print()
docs: List all confs or if a conf is given, all the stanzas in it.