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. """ export_util.AddBaseExportFlags(parser) flags.AddOffloadArgument(parser) parser.add_argument( '--query', required=True, help='A SQL SELECT query (e.g., SELECT * FROM table) that specifies ' 'the data to export.')
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. """ export_util.AddBaseExportFlags(parser) flags.AddOffloadArgument(parser) parser.add_argument( '--table', '-t', type=arg_parsers.ArgList(min_length=1), metavar='TABLE', required=False, help='Tables to export from the specified database. If you specify ' 'tables, specify one and only one database.')