summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options.c')
-rw-r--r--options.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/options.c b/options.c
index 258dc37..66cfcc5 100644
--- a/options.c
+++ b/options.c
@@ -32,7 +32,7 @@ const options_t *options = (const options_t*) &_options;
void print_usage(void)
{
- printf("usage: sxiv [-abcfhioqrtvZ] [-A FRAMERATE] [-e WID] [-G GAMMA] "
+ printf("usage: sxiv [-abcfhiopqrtvZ] [-A FRAMERATE] [-e WID] [-G GAMMA] "
"[-g GEOMETRY] [-N NAME] [-n NUM] [-S DELAY] [-s MODE] [-z ZOOM] "
"FILES...\n");
}
@@ -72,8 +72,9 @@ void parse_options(int argc, char **argv)
_options.quiet = false;
_options.thumb_mode = false;
_options.clean_cache = false;
+ _options.private_mode = false;
- while ((opt = getopt(argc, argv, "A:abce:fG:g:hin:N:oqrS:s:tvZz:")) != -1) {
+ while ((opt = getopt(argc, argv, "A:abce:fG:g:hin:N:opqrS:s:tvZz:")) != -1) {
switch (opt) {
case '?':
print_usage();
@@ -129,6 +130,9 @@ void parse_options(int argc, char **argv)
case 'o':
_options.to_stdout = true;
break;
+ case 'p':
+ _options.private_mode = true;
+ break;
case 'q':
_options.quiet = true;
break;