Removed option -a
This commit is contained in:
parent
d15264ea32
commit
f4b9bc9a1d
|
@ -34,8 +34,6 @@ small previews is displayed, making it easy to choose an image to open.
|
||||||
|
|
||||||
sxiv supports the following command-line options:
|
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
|
-C Remove all orphaned cache files from thumbnail cache and exit
|
||||||
-d Scale all images to 100%, but fit large images into window
|
-d Scale all images to 100%, but fit large images into window
|
||||||
-F Use size-hints to make the window fixed/floating
|
-F Use size-hints to make the window fixed/floating
|
||||||
|
|
|
@ -31,7 +31,7 @@ options_t _options;
|
||||||
const options_t *options = (const options_t*) &_options;
|
const options_t *options = (const options_t*) &_options;
|
||||||
|
|
||||||
void print_usage() {
|
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() {
|
void print_version() {
|
||||||
|
@ -51,19 +51,15 @@ void parse_options(int argc, char **argv) {
|
||||||
_options.fullscreen = 0;
|
_options.fullscreen = 0;
|
||||||
_options.geometry = NULL;
|
_options.geometry = NULL;
|
||||||
|
|
||||||
_options.all = 0;
|
|
||||||
_options.quiet = 0;
|
_options.quiet = 0;
|
||||||
_options.clean_cache = 0;
|
_options.clean_cache = 0;
|
||||||
_options.recursive = 0;
|
_options.recursive = 0;
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "aCdFfg:hpqrstvZz:")) != -1) {
|
while ((opt = getopt(argc, argv, "CdFfg:hpqrstvZz:")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case '?':
|
case '?':
|
||||||
print_usage();
|
print_usage();
|
||||||
exit(1);
|
exit(1);
|
||||||
case 'a':
|
|
||||||
_options.all = 1;
|
|
||||||
break;
|
|
||||||
case 'C':
|
case 'C':
|
||||||
_options.clean_cache = 1;
|
_options.clean_cache = 1;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -35,7 +35,6 @@ typedef struct {
|
||||||
unsigned char fullscreen;
|
unsigned char fullscreen;
|
||||||
char *geometry;
|
char *geometry;
|
||||||
|
|
||||||
unsigned char all;
|
|
||||||
unsigned char quiet;
|
unsigned char quiet;
|
||||||
unsigned char clean_cache;
|
unsigned char clean_cache;
|
||||||
unsigned char recursive;
|
unsigned char recursive;
|
||||||
|
|
7
sxiv.1
7
sxiv.1
|
@ -3,7 +3,7 @@
|
||||||
sxiv \- Simple (or small or suckless) X Image Viewer
|
sxiv \- Simple (or small or suckless) X Image Viewer
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B sxiv
|
.B sxiv
|
||||||
.RB [ \-aCdFfhpqrstvZ ]
|
.RB [ \-CdFfhpqrstvZ ]
|
||||||
.RB [ \-g
|
.RB [ \-g
|
||||||
.IR GEOMETRY ]
|
.IR GEOMETRY ]
|
||||||
.RB [ \-z
|
.RB [ \-z
|
||||||
|
@ -31,11 +31,6 @@ Please note, that the fullscreen mode requires an EWMH/NetWM compliant window
|
||||||
manager.
|
manager.
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.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
|
.B \-C
|
||||||
Remove all orphaned cache files from the thumbnail cache directory and exit.
|
Remove all orphaned cache files from the thumbnail cache directory and exit.
|
||||||
.TP
|
.TP
|
||||||
|
|
Loading…
Reference in a new issue