tools/cr/cr/commands/command.py
def AddArguments(self, subparsers):
    """Add arguments to the command line parser.

    Called by the main function to add the command to the command line parser.
    Commands that override this function to add more arguments must invoke
    this method.
    Args:
      subparsers: The argparse subparser manager to add this command to.
    Returns:
      the parser that was built for the command.
    """
    self.parser = subparsers.add_parser(
        self.name,
        add_help=False,
        help=self.help,
        description=self.description or self.help,
        epilog=self.epilog,
    )
    self.parser.set_defaults(_command=self)
    cr.context.AddCommonArguments(self.parser)
    cr.base.client.AddArguments(self.parser)
    return self.parser
Add arguments to the command line parser.

    Called by the main function to add the command to the command line parser.
    Commands that override this function to add more arguments must invoke
    this method.
    Args:
      subparsers: The argparse subparser manager to add this command to.
    Returns:
      the parser that was built for the command.
    
Add arguments to the command line parser.
Called by the main function to add the command to the command line parser.
Commands that override this function to add more arguments must invoke
this method.
Add arguments to the command line parser . Called by the main function to add the command to the command line parser . Commands that override this function to add more arguments must invoke this method .
def AddArguments(self, subparsers):
    self.parser = subparsers.add_parser(
        self.name,
        add_help=False,
        help=self.help,
        description=self.description or self.help,
        epilog=self.epilog,
    )
    self.parser.set_defaults(_command=self)
    cr.context.AddCommonArguments(self.parser)
    cr.base.client.AddArguments(self.parser)
    return self.parser
def AddArguments ( self , subparsers ) : self . parser = subparsers . add_parser ( self . name , add_help = False , help = self . help , description = self . description or self . help , epilog = self . epilog , ) self . parser . set_defaults ( _command = self ) cr . context . AddCommonArguments ( self . parser ) cr . base . client . AddArguments ( self . parser ) return self . parser
Add arguments to the command line parser.
Add arguments to the command line parser .
"""Add arguments to the command line parser.

    Called by the main function to add the command to the command line parser.
    Commands that override this function to add more arguments must invoke
    this method.
    Args:
      subparsers: The argparse subparser manager to add this command to.
    Returns:
      the parser that was built for the command.
    """
the parser that was built for the command.
the parser that was built for the command .
self
subparsers
The argparse subparser manager to add this command to.
The argparse subparser manager to add this command to .