Diff for libcfg+/doc/sgml/usage.options-set.sgml between version 1.9 and 1.10
| version 1.9, 2002/09/04 17:11:01 |
version 1.10, 2002/09/25 17:44:29 |
| Line 228 values to <constant>0</constant>. |
|
| Line 228 values to <constant>0</constant>. |
|
| <programlisting><![CDATA[ |
<programlisting><![CDATA[ |
| #include <cfg+.h> |
#include <cfg+.h> |
| |
|
| int help, quiet, verbose, nice; |
/* Option variables */ |
| |
int help, verbose, nice; |
| char *cfg_file; |
char *cfg_file; |
| char **leftovers; |
char **command; |
| |
|
| |
/* Option set */ |
| struct cfg_option options[] = { |
struct cfg_option options[] = { |
| {"help", 'h', NULL, CFG_BOOL, (void *) &help, 0}, |
{"help", 'h', NULL, CFG_BOOL, (void *) &help, 0}, |
| {"quiet", 'q', "quiet", CFG_BOOL, (void *) &quiet, 0}, |
{"nice", 'n', "nice", CFG_INT, (void *) &nice, 0}, |
| {"verbose", 'v', "verbose", CFG_BOOL+CFG_MULTI,(void *) &verbose, 0}, |
{"verbose", 'v', "verbose", CFG_BOOL+CFG_MULTI,(void *) &verbose, 0}, |
| {NULL, 'f', NULL, CFG_STRING, (void *) &cfg_file, 0}, |
{NULL, 'f', NULL, CFG_STR, (void *) &cfg_file, 0}, |
| {"nice", 'n', "nice", CFG_INT, (void *) &nice, 0}, |
{NULL, '\0', "command", CFG_STR+CFG_MULTI_SEPARATED+CFG_LEFTOVER_ARGS, |
| {NULL, '\0', "command", CFG_STRING+CFG_MULTI+CFG_LEFTOVER_ARGS, |
(void *) &command, 0}, |
| (void *) &leftovers, 0} |
|
| CFG_END_OF_LIST |
CFG_END_OF_LIST |
| }; |
}; |
| ]]></programlisting> |
]]></programlisting> |
Platon Group <platon@platon.org> http://platon.org/
|
|