httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject Usage info for dbmmanage.new (fwd)
Date Tue, 26 Nov 1996 12:37:42 GMT

Acked.

+1, looks harmless and useful on a documentation front.

-=-=-=-=-


Date: Tue, 26 Nov 1996 05:55:59 -0500 (EST)
From: Skip Montanaro <skip@automatrix.com>
Message-Id: <199611261055.FAA01988@dolphin.automatrix.com>
To: apache-bugs@apache.org
Subject: Usage info for dbmmanage.new
Reply-to: Skip Montanaro <skip@calendar.com>


I got tired of always having to look at the dbmmanage source code to refresh
my memory about its argument list.  The diff below expands on the "Too few
arguments" message you get when invoking it with less than two args.

Skip Montanaro     |       Musi-Cal:  http://concerts.calendar.com/
skip@calendar.com  |    "It doesn't matter where you get your appetite as
(518)372-5583      |    long as you eat at home." -- Sloan Wainwright

*** /usr/local/bin/dbmmanage	Mon Jun 24 10:34:32 1996
--- dbmmanage.new	Tue Nov 26 05:48:34 1996
***************
*** 61,65 ****
  # dbmmanage <dbm file> adduser <person> <password>
  
! die "Too few arguments.\n" if (@ARGV < 2);
  
  ($file,$command,$key,$value) = @ARGV;
--- 61,72 ----
  # dbmmanage <dbm file> adduser <person> <password>
  
! if (@ARGV < 2) {
!     die "Too few arguments.\
!    Usage: dbmmanage <DBMfile> <command> [<key> [<value>]]\
!    where command is add, delete, view or adduser.\
!    No value required for \"delete\", no key or value for \"view\".\
!    To change a value, simply use \"add\".\
!    \"adduser\" encrypts the value and uses it as the user's password\n";
! }
  
  ($file,$command,$key,$value) = @ARGV;


Mime
View raw message