def Args(parser): """Args is called by calliope to gather arguments for this command. Args: parser: An argparse parser that you can use to add arguments that go on the command line after this command. Positional arguments are allowed. """ flags.AddDatabaseName(parser) flags.AddCharset(parser) flags.AddCollation(parser) flags.AddInstance(parser) base.ASYNC_FLAG.AddToParser(parser)
def Args(parser): """Args is called by calliope to gather arguments for this command. Please add arguments in alphabetical order except for no- or a clear- pair for that argument which can follow the argument itself. Args: parser: An argparse parser that you can use to add arguments that go on the command line after this command. Positional arguments are allowed. """ flags.AddCharset(parser) flags.AddCollation(parser) flags.AddDatabaseName(parser) flags.AddInstance(parser) parser.add_argument('--diff', action='store_true', help='Show what changed as a result of the patch.')
def Args(parser): """Args is called by calliope to gather arguments for this command. Please add arguments in alphabetical order except for no- or a clear- pair for that argument which can follow the argument itself. Args: parser: An argparse parser that you can use to add arguments that go on the command line after this command. Positional arguments are allowed. """ flags.AddCharset(parser) custom_help = ( 'Cloud SQL database collation setting, which specifies ' 'the set of rules for comparing characters in a character set. Each' ' database version may support a different set of collations. This flag' ' can\'t be used with PostgreSQL instances.') flags.AddCollation(parser, custom_help) flags.AddDatabaseName(parser) flags.AddInstance(parser) parser.add_argument('--diff', action='store_true', help='Show what changed as a result of the patch.') parser.display_info.AddFormat('table(new:format="default")')