Bladeren bron

Removed option -a

master
Bert 13 jaren geleden
bovenliggende
commit
f4b9bc9a1d
4 gewijzigde bestanden met toevoegingen van 3 en 15 verwijderingen
  1. +0
    -2
      README.md
  2. +2
    -6
      options.c
  3. +0
    -1
      options.h
  4. +1
    -6
      sxiv.1

+ 0
- 2
README.md Bestand weergeven

@@ -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


+ 2
- 6
options.c Bestand weergeven

@@ -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;


+ 0
- 1
options.h Bestand weergeven

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

unsigned char all;
unsigned char quiet;
unsigned char clean_cache;
unsigned char recursive;


+ 1
- 6
sxiv.1 Bestand weergeven

@@ -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


Laden…
Annuleren
Opslaan