better followup fix for my_getopt (Argh!)

This commit is contained in:
unknown 2004-04-30 23:12:37 +02:00
parent 1175b48555
commit d3f1288044

View file

@ -364,16 +364,16 @@ int handle_options(int *argc, char ***argv,
}
else
{
if (optp->arg_type == OPT_ARG)
{
if (optp->var_type == GET_BOOL)
*((my_bool*) optp->value)= (my_bool) 1;
get_one_option(optp->id, optp, argument);
continue;
}
/* Check if there are more arguments after this one */
if (!pos[1])
{
if (optp->arg_type == OPT_ARG)
{
if (optp->var_type == GET_BOOL)
*((my_bool*) optp->value)= (my_bool) 1;
get_one_option(optp->id, optp, argument);
continue;
}
if (my_getopt_print_errors)
fprintf(stderr,
"%s: option '-%c' requires an argument\n",