* explain flags in doc strings

* reverse order of files on the command line in pickle2db.py to make it
  symmetrical with db2pickle.py in the two-arg case (src, then dest)
This commit is contained in:
Skip Montanaro 2004-03-03 17:42:08 +00:00
parent 47db16580a
commit e2b61e0190
3 changed files with 37 additions and 15 deletions

View file

@ -4,10 +4,18 @@
Synopsis: %(prog)s [-h|-g|-b|-r|-a] dbfile [ picklefile ]
Convert the database file given on the command line to a pickle
representation. The optional flags indicate the type of the database (hash,
btree, recno). The default is hash. If a pickle file is named it is opened
for write access (deleting any existing data). If no pickle file is named,
the pickle output is written to standard output.
representation. The optional flags indicate the type of the database:
-a - open using anydbm
-b - open as bsddb btree file
-d - open as dbm file
-g - open as gdbm file
-h - open as bsddb hash file
-r - open as bsddb recno file
The default is hash. If a pickle file is named it is opened for write
access (deleting any existing data). If no pickle file is named, the pickle
output is written to standard output.
"""