Properly obtain the next option value

This commit is contained in:
Nick Chambers 2022-06-20 12:49:17 -05:00
parent 624646663d
commit 88c124f4bc
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}