Properly obtain the next option value
This commit is contained in:
parent
624646663d
commit
88c124f4bc
|
@ -33,9 +33,9 @@ uint8_t gargoyle_digest_args(uint16_t optc, struct gargoyle_opt *optv, int *argc
|
|||
if(opt->type & GARGOYLE_TYPE_BOOL) {
|
||||
res = gargoyle_from_bool(opt, brand);
|
||||
} else if(*(brand + opt->brand_sz) == '=') {
|
||||
res = gargoyle_from_rope(opt, brand + opt->brand_sz);
|
||||
res = gargoyle_from_rope(opt, brand + opt->brand_sz + 1);
|
||||
} else {
|
||||
if(!(*argv + 1)) {
|
||||
if(!*(*argv + 1)) {
|
||||
return GARGOYLE_ERR_VALUE_REQUIRED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue