my $indent = ' ' x length($0);
print <<USAGE_END;
Usage:
$0 --host=dbhost [ --port=dbport ] \\
$indent --user=dbuser [ --pass=dbpass ] \\
$indent --type=schema-type | --database=dbname \\
$indent [ --release=new-release ] [ --from=old-release ] \\
$indent [ --species=dbspecies ] \\
$indent [ --gitdir=/some/path ] \\
$indent [ --dryrun ] \\
$indent [ --interactive 0|1 ]\\
$indent [ --verbose ] [ --quiet ] \\
$indent [ --mysql=optional_path ] \\
$indent [ --fix ] \\
$indent [ --fixlast ]
$0 --version
--host / -h\tdatabase host name (required)
--port / -P\tdatabase port (optional, default=3306)
--user / -u\tdatabase user (required)
--pass / -p\tdatabase user password (optional, no default)
--type / -t restrict to database schema type
(i.e. core, compara, funcgen, gene2phenotype, variation, production or ontology)
(required if --database is not specified)
--database / -d full name of database, or database name pattern
(required if --type is not specified)
--release / -r release number (optional, default is the latest
release that we can find patches for)
--from / -f only consider databases from this release
(optional, no default)
--species / -s restrict to species (optional, no default)
--gitdir the directory where the relevant Ensembl Git repositories
have been checked out (optional, default=misc-scripts/../..)
--dryrun / -n do not actually modify databases
(optional, default=not set)
--verbose / -v display extra information
--quiet / -q do not display warnings
--fix also go through all old patches to find any missing
patch (patching starts at release equal to the
oldest patch in the database) >>USE WITH CAUTION<<
--oldest used in conjunction with --fix, this option allows control
over how many releases are included in the fix. This option
exists for users who have incomplete meta entries and
wish to bring their database automatically up to date.
--fixlast an extension of B<--oldest> and B<--fix>. This combines
to patch the current and last release only, giving an easy
way to patch a database post-handover without worrying
--mysql specify the location of the mysql binary if it is not on
\$PATH. Otherwise we default this to mysql
--nointeractive specify if you want an non-interactive patching environment
(default false). >>USE WITH CAUTION<<
--help display this text
--
about display further information
--version display version and quit
USAGE_END