Removed option -a

This commit is contained in:
Bert 2011-04-11 17:01:33 +02:00
parent d15264ea32
commit f4b9bc9a1d
4 changed files with 3 additions and 15 deletions

View File

@ -34,8 +34,6 @@ small previews is displayed, making it easy to choose an image to open.
sxiv supports the following command-line options:
-a Display all given files, do not filter out unsupported files
(shorter startup time for long file list or slow file types)
-C Remove all orphaned cache files from thumbnail cache and exit
-d Scale all images to 100%, but fit large images into window
-F Use size-hints to make the window fixed/floating

View File

@ -31,7 +31,7 @@ options_t _options;
const options_t *options = (const options_t*) &_options;
void print_usage() {
printf("usage: sxiv [-aCdFfhpqrstvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n");
printf("usage: sxiv [-CdFfhpqrstvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n");
}
void print_version() {
@ -51,19 +51,15 @@ void parse_options(int argc, char **argv) {
_options.fullscreen = 0;
_options.geometry = NULL;
_options.all = 0;
_options.quiet = 0;
_options.clean_cache = 0;
_options.recursive = 0;
while ((opt = getopt(argc, argv, "aCdFfg:hpqrstvZz:")) != -1) {
while ((opt = getopt(argc, argv, "CdFfg:hpqrstvZz:")) != -1) {
switch (opt) {
case '?':
print_usage();
exit(1);
case 'a':
_options.all = 1;
break;
case 'C':
_options.clean_cache = 1;
break;

View File

@ -35,7 +35,6 @@ typedef struct {
unsigned char fullscreen;
char *geometry;
unsigned char all;
unsigned char quiet;
unsigned char clean_cache;
unsigned char recursive;

7
sxiv.1
View File

@ -3,7 +3,7 @@
sxiv \- Simple (or small or suckless) X Image Viewer
.SH SYNOPSIS
.B sxiv
.RB [ \-aCdFfhpqrstvZ ]
.RB [ \-CdFfhpqrstvZ ]
.RB [ \-g
.IR GEOMETRY ]
.RB [ \-z
@ -31,11 +31,6 @@ Please note, that the fullscreen mode requires an EWMH/NetWM compliant window
manager.
.SH OPTIONS
.TP
.B \-a
Display all given files, do not filter out unsupported files. This might result
in a much shorter startup time, when the file list is very long or contains
large files of slow loadable types, e.g. gif and progressive jpg.
.TP
.B \-C
Remove all orphaned cache files from the thumbnail cache directory and exit.
.TP