X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Foptions.h;h=b98ef1e2b046f51c10a02fba4a7c466969d56605;hb=3178894be28922a17125e31feff1010fcecc3128;hp=79c229e456d7c38ce4be31f758c4c9b437ae4625;hpb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a;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