X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Foptions.h;h=5cd9510895d6bb54eced1c921b609abfbf50bf5f;hp=b9d0231c9277e1547c82164b35e3a6dc236b55b3;hb=5ef30a0bda9a010b88266f90a253a2c46e6d47db;hpb=834902a1b9db396bd9aae10fe0ae725535afecfe diff --git a/include/yaz/options.h b/include/yaz/options.h index b9d0231..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-2011 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