code: def add_options(self):
          
          super(RtorrentXmlRpc, self).add_options()
  
          # basic options
          self.add_bool_option("-r", "--repr", help="show Python pretty-printed response")
          self.add_bool_option("-x", "--xml", help="show XML response")
          self.add_bool_option("-i", "--as-import",
              help="execute each argument as a private command using 'import'")
          self.add_bool_option("--session", "--restore",
              help="restore session state from .rtorrent session file(s)")
  
          # TODO: Tempita with "result" object in namespace
          #self.add_value_option("-o", "--output-format", "FORMAT",
          #    help="pass result to a template for formatting")
  
          self.proxy = None
docs: Add program options.