description="merge database files applying the sql in --sql-file as you go"
)
parser.add_option("-d","--database",metavar="filename",help="Set the name of the SQLite3 database file (required).")
parser.add_option("--ilwdchar-compat",action="store_true",help="Use obsolete ilwd:char based table definitions and ID reassignment algorithm (default = use new int_8s based table definitions and ID reassignment algorithm).")
parser.add_option("-i","--input-cache",metavar="filename",action="append",default=[],help="Get the names of XML documents to insert into the database from this LAL cache. This option can be given multiple times, and all files from all caches will be loaded.")
parser.add_option("-p","--preserve-ids",action="store_true",help="Preserve row IDs from the XML in the database. The default is to assign new IDs to prevent collisisions. Inserts will fail if collisions occur.")
parser.add_option("-r","--replace",action="store_true",help="If the database file already exists, over-write it instead of inserting into it.")
parser.add_option("-t","--tmp-space",metavar="path",help="Path to a directory suitable for use as a work area while manipulating the database file. The database file will be worked on in this directory, and then moved to the final location when complete. This option is intended to improve performance when running in a networked environment, where there might be a local disk with higher bandwidth than is available to the filesystem on which the final output will reside.")
parser.add_option("-s","--sql-file",metavar="filename",help="Execute this SQL file (required).")