From c6ae17f774721875a2833b1138bad9f516a72003 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 3 Oct 2015 19:46:11 -0400 Subject: Add support for Morton order. --- options.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'options.c') diff --git a/options.c b/options.c index 5a5b446..db48615 100644 --- a/options.c +++ b/options.c @@ -225,7 +225,7 @@ print_usage(FILE *file, const char *command, bool verbose) #define usage(...) print_colorized(file, tty, __VA_ARGS__) usage("Usage:\n"); usage(" !$! *%s* [-b|--bit-depth @DEPTH@]\n", command); - usage(" %s [-s|--hue-sort] [-r|--random]\n", whitespace); + usage(" %s [-s|--hue-sort] [-r|--random] [-M|--morton]\n", whitespace); usage(" %s [-l|--selection @min@|@mean@]\n", whitespace); usage(" %s [-c|--color-space @RGB@|@Lab@|@Luv@]\n", whitespace); usage(" %s [-w|--width @WIDTH@] [-h|--height @HEIGHT@]\n", whitespace); @@ -303,6 +303,8 @@ parse_options(options_t *options, int argc, char *argv[]) options->mode = MODE_HUE_SORT; } else if (parse_arg(argc, argv, "-r", "--random", NULL, &i, &error)) { options->mode = MODE_RANDOM; + } else if (parse_arg(argc, argv, "-M", "--morton", NULL, &i, &error)) { + options->mode = MODE_MORTON; } else if (parse_arg(argc, argv, "-l", "--selection", &value, &i, &error)) { if (strcmp(value, "min") == 0) { options->selection = SELECTION_MIN; -- cgit v1.2.3