diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2015-10-04 13:36:25 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2015-10-04 13:36:25 -0400 |
commit | f0bc8b8ddbd1ef1041f1249d510bb379903777d5 (patch) | |
tree | 4b11e28a59986e5d0e5d83326c1e6dabbefc6a04 /options.c | |
parent | c6ae17f774721875a2833b1138bad9f516a72003 (diff) | |
download | kd-forest-f0bc8b8ddbd1ef1041f1249d510bb379903777d5.tar.xz |
Add support for Hilbert order.
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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] [-M|--morton]\n", whitespace); + usage(" %s [-s|--hue-sort] [-r|--random] [-M|--morton] [-H|--hilbert]\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); @@ -305,6 +305,8 @@ parse_options(options_t *options, int argc, char *argv[]) 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, "-H", "--hilbert", NULL, &i, &error)) { + options->mode = MODE_HILBERT; } else if (parse_arg(argc, argv, "-l", "--selection", &value, &i, &error)) { if (strcmp(value, "min") == 0) { options->selection = SELECTION_MIN; |