summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/db2pickle.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2004-03-03 17:42:08 (GMT)
committerSkip Montanaro <skip@pobox.com>2004-03-03 17:42:08 (GMT)
commite2b61e019089d02f7da8c883c8836540f53a9a57 (patch)
tree7e89b84e5ce905fbfe69336e8713eaffd620d6f4 /Tools/scripts/db2pickle.py
parent47db16580a1c3ccf15703dfcfc86a64f35b9435c (diff)
downloadcpython-e2b61e019089d02f7da8c883c8836540f53a9a57.zip
cpython-e2b61e019089d02f7da8c883c8836540f53a9a57.tar.gz
cpython-e2b61e019089d02f7da8c883c8836540f53a9a57.tar.bz2
* 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)
Diffstat (limited to 'Tools/scripts/db2pickle.py')
-rw-r--r--Tools/scripts/db2pickle.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/Tools/scripts/db2pickle.py b/Tools/scripts/db2pickle.py
index 7b0857c..795011b 100644
--- a/Tools/scripts/db2pickle.py
+++ b/Tools/scripts/db2pickle.py
@@ -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.
"""