) # Add verbosity and quiet (silent) mode add_verbosity(parser, True) # Add difftype option add_difftype(parser, True) # Add the direction (changes-for) add_changes_for(parser) # Add show reverse option add_reverse(parser) # Add regexp add_regexp(parser) # Add ssl options add_ssl_options(parser) # Now we process the rest of the arguments. opt, args = parser.parse_args() # Fail if no db arguments or --all option. if len(args) == 0 and not opt.all: parser.error(PARSE_ERR_DB_MISSING_CMP) # Check security settings check_password_security(opt, args, "# ") # Warn if quiet and verbosity are both specified
add_all(parser, "databases") # Add the skip common options add_skip_options(parser) # Add verbosity and quiet (silent) mode add_verbosity(parser, True) # Add engine options add_engines(parser) # Add locking options add_locking(parser) # Add regexp add_regexp(parser) # Replication user and password add_rpl_user(parser, None) # Add replication options but don't include 'both' add_rpl_mode(parser, False, False) # Now we process the rest of the arguments. opt, args = parser.parse_args() try: skips = check_skip_options(opt.skip_objects) except UtilError, e: print "ERROR: %s" % e.errmsg exit(1)