class_docstr: Base class of tfdbg user interface.
class_docstr_tok: ["Base","class","of","tfdbg","user","interface","."]
docstr: A wrapper around CommandHandlerRegistry.register_command_handler().
  
  In addition to calling the wrapped register_command_handler() method, this
  method also registers the top-level tab-completion context based on the
  command prefixes and their aliases.
  
  See the doc string of the wrapped method for more details on the args.
  
  Args:
    prefix: (str) command prefix.
    handler: (callable) command handler.
    help_info: (str) help information.
    prefix_aliases: (list of str) aliases of the command prefix.
docstr_tok: ["A","wrapper","around","CommandHandlerRegistry.register_command_handler","(",")",".","In","addition","to","calling","the","wrapped","register_command_handler","(",")","method",",","this","method","also","registers","the","top-level","tab-completion","context","based","on","the","command","prefixes","and","their","aliases",".","See","the","doc","string","of","the","wrapped","method","for","more","details","on","the","args",".","Args",":","prefix",":","(","str",")","command","prefix",".","handler",":","(","callable",")","command","handler",".","help_info",":","(","str",")","help","information",".","prefix_aliases",":","(","list","of","str",")","aliases","of","the","command","prefix","."]
code: def register_command_handler(
      self, prefix, handler, help_info, prefix_aliases=None
  ):
      """A wrapper around CommandHandlerRegistry.register_command_handler().
  
      In addition to calling the wrapped register_command_handler() method, this
      method also registers the top-level tab-completion context based on the
      command prefixes and their aliases.
  
      See the doc string of the wrapped method for more details on the args.
  
      Args:
        prefix: (str) command prefix.
        handler: (callable) command handler.
        help_info: (str) help information.
        prefix_aliases: (list of str) aliases of the command prefix.
      """
  
      self._command_handler_registry.register_command_handler(
          prefix, handler, help_info, prefix_aliases=prefix_aliases
      )
  
      self._tab_completion_registry.extend_comp_items("", [prefix])
      if prefix_aliases:
          self._tab_completion_registry.extend_comp_items(
              "", prefix_aliases
          )
  
file_path: tensorflow-upstream/tensorflow/python/debug/cli/base_ui.py
imports: import argparse
  from tensorflow.python.debug.cli import cli_config
  from tensorflow.python.debug.cli import command_parser
  from tensorflow.python.debug.cli import debugger_cli_common
label_desc: Use image node_id 3 for calling the BaseUI obj's underlying member method code with example usage: obj.register_command_handler(prefix, handler, help_info, prefix_aliases) without return types