Пример #1
0
def AddBaseArgs(parser):
    flags.AddInstance(parser)
    flags.AddUsername(parser)
    flags.AddHost(parser)
    password_group = parser.add_mutually_exclusive_group()
    flags.AddPassword(password_group)
    flags.AddPromptForPassword(password_group)
Пример #2
0
    def Args(parser):
        """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use it to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
        flags.AddInstance(parser)
        flags.AddUsername(parser)
        flags.AddHost(parser)
        password_group = parser.add_mutually_exclusive_group()
        flags.AddPassword(password_group)
        flags.AddPromptForPassword(password_group)
        base.ASYNC_FLAG.AddToParser(parser)