Added -d option
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 18 Mar 2004 22:59:40 +0000 (22:59 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 18 Mar 2004 22:59:40 +0000 (22:59 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@868 cb58f699-b61c-0410-a6fe-9272a202ed29

shar/shar.cpp

index 8f4b016..e2bd479 100644 (file)
@@ -233,6 +233,7 @@ static void usage(char* whoami)
 {
     fprintf(stderr, "usage: %s [-f]\n", whoami);
     fprintf(stderr, "  -c\tconfig file to use.\n");
+    fprintf(stderr, "  -d\tschema directory to use.\n");
     fprintf(stderr, "  -f\tforce removal of listener socket.\n");
     fprintf(stderr, "  -h\tprint this help message.\n");
     exit(1);
@@ -242,7 +243,7 @@ static int parse_args(int argc, char* argv[])
 {
     int opt;
 
-    while ((opt = getopt(argc, argv, "cfFh")) > 0) {
+    while ((opt = getopt(argc, argv, "cdfFh")) > 0) {
         switch (opt) {
             case 'c':
                 config=optarg;