Skip to content

Commit 5c9a0a1

Browse files
committed
Fastfetch: clarify that --debug is debug-mode only
1 parent bc05a30 commit 5c9a0a1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/options/display.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,14 @@ bool ffOptionsParseDisplayCommandLine(FFOptionsDisplay* options, const char* key
492492
options->pipe = ffOptionParseBoolean(value);
493493
else if(ffStrEqualsIgnCase(key, "--show-errors"))
494494
options->showErrors = ffOptionParseBoolean(value);
495-
#ifndef NDEBUG
496495
else if(ffStrEqualsIgnCase(key, "--debug"))
496+
#ifndef NDEBUG
497497
options->debugMode = ffOptionParseBoolean(value);
498+
#else
499+
{
500+
fprintf(stderr, "--debug is only available in debug builds\n");
501+
exit(477);
502+
}
498503
#endif
499504
else if(ffStrEqualsIgnCase(key, "--disable-linewrap"))
500505
options->disableLinewrap = ffOptionParseBoolean(value);

0 commit comments

Comments
 (0)