X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Foptions.h;h=5cd9510895d6bb54eced1c921b609abfbf50bf5f;hp=79c229e456d7c38ce4be31f758c4c9b437ae4625;hb=5ef30a0bda9a010b88266f90a253a2c46e6d47db;hpb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a diff --git a/include/yaz/options.h b/include/yaz/options.h index 79c229e..5cd9510 100644 --- a/include/yaz/options.h +++ b/include/yaz/options.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data. + * Copyright (C) 1995-2013 Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -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