Fastfetch: print module description for --list-modules

This commit is contained in:
李通洲
2023-11-17 14:12:17 +08:00
parent ce6041938a
commit 730c0d1c92
61 changed files with 75 additions and 10 deletions
+2 -2
View File
@@ -192,9 +192,9 @@ static void listModules(bool pretty)
{
++count;
if (pretty)
printf("%d)%s%s\n", count, count > 9 ? " " : " ", (*modules)->name);
printf("%d)%s%-13s: %s\n", count, count > 9 ? " " : " ", (*modules)->name, (*modules)->description);
else
puts((*modules)->name);
printf("%s:%s\n", (*modules)->name, (*modules)->description);
}
}
}