X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Foptions.h;h=b98ef1e2b046f51c10a02fba4a7c466969d56605;hb=5242cb5a8634bfa38b9333ff7f903e718ac6e292;hp=79c229e456d7c38ce4be31f758c4c9b437ae4625;hpb=7b27a8f378d73a86e8ff5e4fa3285117362481c5;p=yaz-moved-to-github.git diff --git a/include/yaz/options.h b/include/yaz/options.h index 79c229e..b98ef1e 100644 --- a/include/yaz/options.h +++ b/include/yaz/options.h @@ -46,10 +46,10 @@ YAZ_BEGIN_CDECL \retval -1 unknown option (error). arg is name of unknown option \retval -2 no more options (end of options) \retval c option char - + This function is called repeatedly for each option. Both single char options (-x) as well as GNU long options are supported (--long). - The description is a sequence specs where each spec is if the form: + The description is a sequence specs where each spec is if the form: [a-zA-Z0-9]({[a-zA-Z0-9]*})+:? . For example: h{help}f{filename}{fname}: The first char is what is returned when met (single char option char). @@ -67,7 +67,7 @@ YAZ_EXPORT int options(const char *desc, char **argv, int argc, char **arg); YAZ_END_CDECL #endif - + /* * Local variables: * c-basic-offset: 4