fix: hide broken monochrome (#4)

This commit is contained in:
2025-06-04 16:21:26 +02:00
committed by GitHub
parent 2a8c296b63
commit 61d1b0f7e4
2 changed files with 6 additions and 5 deletions
-1
View File
@@ -35,7 +35,6 @@ options:
-s, --slope slope [0-255] (default: random)
-c, --color base color [0-255,0-255,0-255] (default: random)
-v, --variation base variation [0-255,0-255,0-255] (default: random)
-m, --monochrome black & white generation
```
## TODO
+6 -4
View File
@@ -22,7 +22,8 @@ void print_help(int status_code) {
"[-c=R,G,B] "
"[--var=R,G,B] "
"[-vr=VAR_RANGE]"
"[-m]\n\n"
// "[-m]"
"\n\n"
"generate a marble-like pattern bitmap image, blazing fast.\n\n"
"options:\n"
" --help show this help message and exit\n"
@@ -37,7 +38,8 @@ void print_help(int status_code) {
" -va, --variation fixed variation [0-255,0-255,0-255] (default: "
"random)\n"
" -vr, --var-range random variation range [0-255] (default: 30)\n"
" -m, --monochrome black & white generation");
// " -m, --monochrome black & white generation\n"
);
exit(status_code);
}
@@ -180,8 +182,8 @@ parameters parse_args(int argc, char **argv) {
var_set = true;
} else if (is_arg(arg, "-vr") || is_arg(arg, "--var-range")) {
var_range = parse_char(arg, value);
} else if (is_arg(arg, "-m") || is_arg(arg, "--monochrome")) {
params.monochrome = true;
// } else if (is_arg(arg, "-m") || is_arg(arg, "--monochrome")) {
// params.monochrome = true;
} else {
invalid_arg(arg);
}