summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2021-09-21 22:33:50 +0200
committerBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-21 22:37:59 +0200
commit915a7fd384e700dff10f6014167764cd9812badd (patch)
tree1acf355c240c90f2e65b57c75f6403e45fcf41ed /options.c
parent09d4b7034965125a872126e4a91cf0452c11de88 (diff)
downloadnsxiv-915a7fd384e700dff10f6014167764cd9812badd.tar.zst
switch -0 to bottom in options.c
Diffstat (limited to 'options.c')
-rw-r--r--options.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/options.c b/options.c
index 3af5ca9..e8b82dd 100644
--- a/options.c
+++ b/options.c
@@ -31,7 +31,7 @@ const opt_t *options = (const opt_t*) &_options;
void print_usage(void)
{
- printf("usage: nsxiv [-abcfhi0opqrtvZ] [-A FRAMERATE] [-e WID] [-G GAMMA] "
+ printf("usage: nsxiv [-abcfhiopqrtvZ0] [-A FRAMERATE] [-e WID] [-G GAMMA] "
"[-g GEOMETRY] [-N NAME] [-T TITLE] [-n NUM] [-S DELAY] [-s MODE] "
"[-z ZOOM] FILES...\n");
}
@@ -76,7 +76,7 @@ void parse_options(int argc, char **argv)
_options.clean_cache = false;
_options.private_mode = false;
- while ((opt = getopt(argc, argv, "A:abce:fG:g:hin:N:0opqrS:s:T:tvZz:")) != -1) {
+ while ((opt = getopt(argc, argv, "A:abce:fG:g:hin:N:opqrS:s:T:tvZz:0")) != -1) {
switch (opt) {
case '?':
print_usage();
@@ -129,10 +129,6 @@ void parse_options(int argc, char **argv)
case 'N':
_options.res_name = optarg;
break;
- case '0':
- _options.stdout_separator = '\0';
- /* -0 implies -o */
- /* fall through */
case 'o':
_options.to_stdout = true;
break;
@@ -184,6 +180,10 @@ void parse_options(int argc, char **argv)
_options.scalemode = SCALE_ZOOM;
_options.zoom = (float) n / 100.0;
break;
+ case '0':
+ _options.stdout_separator = '\0';
+ _options.to_stdout = true; /* -0 implies -o */
+ break;
}
}