Skip to content

Commit deacecd

Browse files
committed
Fastfetch: print error when invalid freq option is found
1 parent 83dcdaa commit deacecd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/options/display.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ bool ffOptionsParseDisplayCommandLine(FFOptionsDisplay* options, const char* key
392392
const char* subkey = key + strlen("--freq-");
393393
if(ffStrEqualsIgnCase(subkey, "ndigits"))
394394
options->freqNdigits = (int8_t) ffOptionParseInt32(key, value);
395+
else
396+
return false;
395397
}
396398
else
397399
return false;

0 commit comments

Comments
 (0)