nsxiv915a7fd
switch -0 to bottom in options.c
+6 −6
1 file changed
- M options.c +6 −6
| @@ -31,7 +31,7 @@ const opt_t *options = (const opt_t*) &_options; | |||
| 31 | 31 | ||
| 32 | 32 | void print_usage(void) | |
| 33 | 33 | { | |
| 34 | − | printf("usage: nsxiv [-abcfhi0opqrtvZ] [-A FRAMERATE] [-e WID] [-G GAMMA] " | |
| 34 | + | printf("usage: nsxiv [-abcfhiopqrtvZ0] [-A FRAMERATE] [-e WID] [-G GAMMA] " | |
| 35 | 35 | "[-g GEOMETRY] [-N NAME] [-T TITLE] [-n NUM] [-S DELAY] [-s MODE] " | |
| 36 | 36 | "[-z ZOOM] FILES...\n"); | |
| 37 | 37 | } | |
| @@ -76,7 +76,7 @@ void parse_options(int argc, char **argv) | |||
| 76 | 76 | _options.clean_cache = false; | |
| 77 | 77 | _options.private_mode = false; | |
| 78 | 78 | ||
| 79 | − | while ((opt = getopt(argc, argv, "A:abce:fG:g:hin:N:0opqrS:s:T:tvZz:")) != -1) { | |
| 79 | + | while ((opt = getopt(argc, argv, "A:abce:fG:g:hin:N:opqrS:s:T:tvZz:0")) != -1) { | |
| 80 | 80 | switch (opt) { | |
| 81 | 81 | case '?': | |
| 82 | 82 | print_usage(); | |
| @@ -129,10 +129,6 @@ void parse_options(int argc, char **argv) | |||
| 129 | 129 | case 'N': | |
| 130 | 130 | _options.res_name = optarg; | |
| 131 | 131 | break; | |
| 132 | − | case '0': | |
| 133 | − | _options.stdout_separator = '\0'; | |
| 134 | − | /* -0 implies -o */ | |
| 135 | − | /* fall through */ | |
| 136 | 132 | case 'o': | |
| 137 | 133 | _options.to_stdout = true; | |
| 138 | 134 | break; | |
| @@ -184,6 +180,10 @@ void parse_options(int argc, char **argv) | |||
| 184 | 180 | _options.scalemode = SCALE_ZOOM; | |
| 185 | 181 | _options.zoom = (float) n / 100.0; | |
| 186 | 182 | break; | |
| 183 | + | case '0': | |
| 184 | + | _options.stdout_separator = '\0'; | |
| 185 | + | _options.to_stdout = true; /* -0 implies -o */ | |
| 186 | + | break; | |
| 187 | 187 | } | |
| 188 | 188 | } | |
| 189 | 189 | ||