File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -65,15 +65,17 @@ static void printCommandFormatHelp(const char* command)
65
65
{
66
66
if (baseInfo -> formatArgs .count > 0 )
67
67
{
68
- printf ("--%s-format:\n" , type .chars );
68
+ FF_STRBUF_AUTO_DESTROY variable = ffStrbufCreate ();
69
+ printf ("-- In config file: { \"type\": \"%s\", \"format\": \"{<format-variable>}\" }\n" , type .chars );
69
70
printf ("Sets the format string for %s output.\n" , baseInfo -> name );
70
- puts ("To see how a format string is constructed, take a look at \" fastfetch --help format\" ." );
71
- puts ("The following values are passed:" );
71
+ puts ("To see how a format string is constructed, take a look at https://github.com/ fastfetch-cli/fastfetch/wiki/Format-String-Guide ." );
72
+ puts ("The following variables are passed:" );
72
73
73
74
for (unsigned i = 0 ; i < baseInfo -> formatArgs .count ; i ++ )
74
75
{
75
76
const FFModuleFormatArg * arg = & baseInfo -> formatArgs .args [i ];
76
- printf ("%16s {%u}: %s\n" , arg -> name , i + 1 , arg -> desc );
77
+ ffStrbufSetF (& variable , "{%s}" , arg -> name );
78
+ printf ("%20s: %s\n" , variable .chars , arg -> desc );
77
79
}
78
80
}
79
81
else
You can’t perform that action at this time.
0 commit comments