Skip to content

Commit e12e9ab

Browse files
committed
args: revert --add-color -> --color
1 parent 62754c7 commit e12e9ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

customfetch.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Generate default config file to config folder (if path, it will generate to the
223223
.br
224224
Will ask for confirmation if file exists already
225225
.TP
226-
\fB\-\-add\-color\fR <string>
226+
\fB\-\-color\fR <string>
227227
Replace instances of a color with another value.
228228
.br
229229
Syntax MUST be "name=value" with no space between "=", example: --color "foo=#444333".

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ NOTE: Arguments that takes [<bool>] values, the values can be either: "true", 1,
146146
--gen-config [<path>] Generate default config file to config folder (if path, it will generate to the path)
147147
Will ask for confirmation if file exists already
148148
149-
--add-color <string> Replace instances of a color with another value.
149+
--color <string> Replace instances of a color with another value.
150150
Syntax MUST be "name=value" with no space between "=", example: --color "foo=#444333".
151151
Thus replaces any instance of foo with #444333. Can be done with multiple colors separately.
152152
@@ -562,7 +562,7 @@ static STRING_IF_ANDROID_APP_ELSE(bool) parseargs(int argc, char* argv[], Config
562562
{"layout-padding-top", required_argument, 0, "layout-padding-top"_fnv1a16},
563563
{"loop-ms", required_argument, 0, "loop-ms"_fnv1a16},
564564
{"bg-image", required_argument, 0, "bg-image"_fnv1a16},
565-
{"add-color", required_argument, 0, "add-color"_fnv1a16},
565+
{"color", required_argument, 0, "color"_fnv1a16},
566566

567567
{0,0,0,0}
568568
};
@@ -655,7 +655,7 @@ static STRING_IF_ANDROID_APP_ELSE(bool) parseargs(int argc, char* argv[], Config
655655
config.overrides["config.wrap-lines"] = {.value_type = BOOL, .bool_value = true};
656656
break;
657657

658-
case "add-color"_fnv1a16:
658+
case "color"_fnv1a16:
659659
config.addAliasColors(optarg); break;
660660

661661
case "gen-config"_fnv1a16:

0 commit comments

Comments
 (0)