summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-04-06 19:30:06 +0200
committerBert <ber.t@gmx.com>2011-04-06 19:30:06 +0200
commitfacd7e3b42cbf638c1a58caebd3bbaedf74e0b1a (patch)
tree947bcd7c6e1abbbf482e9bdae404f6280d798840 /options.c
parent426edfb3498469b171aae6a582491c2c7e30fd51 (diff)
downloadnsxiv-facd7e3b42cbf638c1a58caebd3bbaedf74e0b1a.tar.zst
New option: -a, do not filter out unsupported files
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 a769952..f5066f4 100644
--- a/options.c
+++ b/options.c
@@ -31,7 +31,7 @@ options_t _options;
const options_t *options = (const options_t*) &_options;
void print_usage() {
- printf("usage: sxiv [-dFfhpqrstvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n");
+ printf("usage: sxiv [-adFfhpqrstvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n");
}
void print_version() {
@@ -51,14 +51,18 @@ void parse_options(int argc, char **argv) {
_options.fullscreen = 0;
_options.geometry = NULL;
+ _options.all = 0;
_options.quiet = 0;
_options.recursive = 0;
- while ((opt = getopt(argc, argv, "dFfg:hpqrstvZz:")) != -1) {
+ while ((opt = getopt(argc, argv, "adFfg:hpqrstvZz:")) != -1) {
switch (opt) {
case '?':
print_usage();
exit(1);
+ case 'a':
+ _options.all = 1;
+ break;
case 'd':
_options.scalemode = SCALE_DOWN;
break;