# Connection information for the source server parser.add_option("--server1", action="store", dest="server1", type="string", default=None, help="connection information for first server in " "the form: <user>[:<password>]@<host>[:<port>]" "[:<socket>] or <login-path>[:<port>][:<socket>].") # Connection information for the destination server parser.add_option("--server2", action="store", dest="server2", type="string", default=None, help="connection information for second server in " "the form: <user>[:<password>]@<host>[:<port>]" "[:<socket>] or <login-path>[:<port>][:<socket>].") # Add character set option add_character_set_option(parser) # Output format add_format_option(parser, "display the output in either grid (default), " "tab, csv, or vertical format", "grid") # Add skips parser.add_option("--skip-checksum-table", action="store_true", dest="no_checksum_table", help="skip CHECKSUM TABLE step in data consistency " "check.") parser.add_option("--skip-object-compare", action="store_true", dest="no_object_check", help="skip object comparison step.")
type="string", default="root@localhost:3306", help="connection information for first server in the " "form: <user>[:<password>]@<host>[:<port>]" "[:<socket>] or <login-path>[:<port>][:<socket>]" " or <config-path>[<[group]>].") # Connection information for the destination server parser.add_option("--server2", action="store", dest="server2", type="string", default=None, help="connection information for second server in the " "form: <user>[:<password>]@<host>[:<port>]" "[:<socket>] or <login-path>[:<port>][:<socket>]" " or <config-path>[<[group]>].") # Add character set option add_character_set_option(parser) # Add display width option parser.add_option("--width", action="store", dest="width", type="int", help="display width", default=PRINT_WIDTH) # Force mode parser.add_option("--force", action="store_true", dest="force", help="do not abort when a diff test fails") # Add compact option for resulting diff parser.add_option("-c", "--compact", action="store_true", dest="compact", help="compact output from a diff.") # Skip check of table options.