diff Tools/scripts/db2pickle.py @ 31613:46df08eb0839 legacy-trunk

* 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)
author Skip Montanaro <skip@pobox.com>
date Wed, 03 Mar 2004 17:42:08 +0000
parents ac8c7716a85d
children afbde360dd1a
line wrap: on
line diff
--- a/Tools/scripts/db2pickle.py	Wed Mar 03 16:34:31 2004 +0000
+++ b/Tools/scripts/db2pickle.py	Wed Mar 03 17:42:08 2004 +0000
@@ -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.
 
 """