From: Robert Spalek Date: Wed, 26 Sep 2001 12:53:49 +0000 (+0000) Subject: added CF_USAGE X-Git-Tag: holmes-import~1472 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=789dd227590c4fedc9acf6501cfabcd5ae1050e6;p=libucw.git added CF_USAGE --- diff --git a/lib/conf.h b/lib/conf.h index 81c10ce2..b225053c 100644 --- a/lib/conf.h +++ b/lib/conf.h @@ -4,6 +4,9 @@ * (c) 2001 Robert Spalek */ +#ifndef _LIB_CONF_H +#define _LIB_CONF_H + #include /* @@ -61,6 +64,9 @@ void cf_read(byte *filename); {"set", 1, 0, 'S'},\ {"config", 1, 0, 'C'}, #define CF_NO_LONG_OPTS (const struct option []){ CF_LONG_OPTS { NULL, 0, 0, 0 } } +#define CF_USAGE \ +"-S, --set sec.item=val\tManual setting of a configuration item\n\ +-C, --config filename\tOverwrite default config filename\n" extern byte *cfdeffile; @@ -68,3 +74,4 @@ int cf_getopt(int argc,char * const argv[], const char *shortopts,const struct option *longopts, int *longindex); +#endif