Use default values instead of hard-coding
This commit is contained in:
parent
3f0cef9b5c
commit
103b0eb94d
|
@ -29,7 +29,7 @@ uint8_t gargoyle_digest_argv(uint16_t optc, struct gargoyle_opt *optv, int *argc
|
||||||
|
|
||||||
if(*(arg + 1) == '-') {
|
if(*(arg + 1) == '-') {
|
||||||
const char *brand = arg + 2;
|
const char *brand = arg + 2;
|
||||||
opt = gargoyle_find_brand(optc, optv, brand, "no-", 3, flags);
|
opt = gargoyle_find_brand(optc, optv, brand, NULL, 0, flags);
|
||||||
|
|
||||||
if(!opt) {
|
if(!opt) {
|
||||||
if(flags & GARGOYLE_FLG_STRCT) {
|
if(flags & GARGOYLE_FLG_STRCT) {
|
||||||
|
|
Loading…
Reference in New Issue