[LON-CAPA-cvs] cvs: loncom /debugging_tools dump_db.pl

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 04 Sep 2002 20:49:16 -0000


matthew		Wed Sep  4 16:49:16 2002 EDT

  Modified files:              
    /loncom/debugging_tools	dump_db.pl 
  Log:
  Minor parameter change - can now specify --u instead of --unescape.  
  
  
Index: loncom/debugging_tools/dump_db.pl
diff -u loncom/debugging_tools/dump_db.pl:1.1 loncom/debugging_tools/dump_db.pl:1.2
--- loncom/debugging_tools/dump_db.pl:1.1	Mon Aug 19 10:37:14 2002
+++ loncom/debugging_tools/dump_db.pl	Wed Sep  4 16:49:16 2002
@@ -4,7 +4,7 @@
 #
 # dump_db.pl - dump a GDBM database to standard output, unescaping if asked to.
 #
-# $Id: dump_db.pl,v 1.1 2002/08/19 14:37:14 matthew Exp $
+# $Id: dump_db.pl,v 1.2 2002/09/04 20:49:16 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -38,7 +38,8 @@
 my $unesc = 0;
 my $help = 0;
 GetOptions("unescape" => \$unesc,
-             "help"     => \$help);
+           "u"        => \$unesc,
+           "help"     => \$help);
 
 #
 # Help them out if they ask for it
@@ -51,6 +52,7 @@
 Options:
    --help     Display this help.
    --unescape Unescape the keys and values before printing them out.
+   --u        Same as --unescape
 Examples: 
     dump_db.pl mydata.db
     dump_db.pl mydata.db yourdata.db ourdata.db theirdata.db