From 8df9f0bbb8eefe466bac79029bb1a442dcc1b0e5 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Wed, 21 Jan 1998 15:03:31 +0000 Subject: [PATCH] Fix usage messages --- src/dbStatic/dbExpand.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/dbStatic/dbExpand.c b/src/dbStatic/dbExpand.c index 0f56552c8..a5c641e0f 100644 --- a/src/dbStatic/dbExpand.c +++ b/src/dbStatic/dbExpand.c @@ -20,12 +20,14 @@ of this distribution. #include #include #include -#include -#include -#include -#include -#include -#include + +#include "dbDefs.h" +#include "epicsPrint.h" +#include "errMdef.h" +#include "dbStaticLib.h" +#include "dbStaticPvt.h" +#include "dbBase.h" +#include "gpHash.h" DBBASE *pdbbase = NULL; @@ -47,9 +49,10 @@ int main(int argc,char **argv) /*Look for options*/ if(argc<2) { fprintf(stderr, - "usage: dbExpand -Idir -Idir " + "usage:\ndbExpand -Ipath -Ipath " "-S substitutions -S substitutions" " file1.dbd file2.dbd ...\n"); + fprintf(stderr,"Specifying path will replace the default '.'\n"); exit(0); } while((strncmp(argv[1],"-I",2)==0)||(strncmp(argv[1],"-S",2)==0)) { @@ -74,9 +77,10 @@ int main(int argc,char **argv) } if(argc<2 || (strncmp(argv[1],"-",1)==0)) { fprintf(stderr, - "usage: dbExpand -Idir -Idir " + "usage:\ndbExpand -Idir -Idir " "-S substitutions -S substitutions" " file1.dbd file2.dbd ...\n"); + fprintf(stderr,"Specifying path will replace the default '.'\n"); exit(0); } for(i=1; i