def AddCmdFunc(command_name, cmd_func, command_aliases=None,
               all_commands_help=None):
  _AddCmdInstance(command_name,
                  _FunctionalCmd(command_name, flags.FlagValues(), cmd_func,
                                 command_aliases=command_aliases,
                                 all_commands_help=all_commands_help),
                  command_aliases=command_aliases)
Add a new command to the list of registered commands.
dataset/ETHPy150Open google/google-apputils/google/apputils/appcommands.py/AddCmdFunc