Renamed option -C -> -c

This commit is contained in:
Bert 2011-04-11 21:27:20 +02:00
parent 5f8201110e
commit ecd5e7108c
3 changed files with 7 additions and 7 deletions

View file

@ -34,7 +34,7 @@ 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:
-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
-f Start in fullscreen mode -f Start in fullscreen mode

View file

@ -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 [-CdFfhpqrstvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n"); printf("usage: sxiv [-cdFfhpqrstvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n");
} }
void print_version() { void print_version() {
@ -55,12 +55,12 @@ void parse_options(int argc, char **argv) {
_options.clean_cache = 0; _options.clean_cache = 0;
_options.recursive = 0; _options.recursive = 0;
while ((opt = getopt(argc, argv, "CdFfg: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 'C': case 'c':
_options.clean_cache = 1; _options.clean_cache = 1;
break; break;
case 'd': case 'd':

6
sxiv.1
View file

@ -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 [ \-CdFfhpqrstvZ ] .RB [ \-cdFfhpqrstvZ ]
.RB [ \-g .RB [ \-g
.IR GEOMETRY ] .IR GEOMETRY ]
.RB [ \-z .RB [ \-z
@ -31,7 +31,7 @@ Please note, that the fullscreen mode requires an EWMH/NetWM compliant window
manager. manager.
.SH OPTIONS .SH OPTIONS
.TP .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
.B \-d .B \-d
@ -201,7 +201,7 @@ existance of this directory as an affirmation, that the user wants thumbnails
to be cached. to be cached.
.P .P
Use the command line option Use the command line option
.I \-C .I \-c
to keep the cache directory clean by removing all orphaned cache files. to keep the cache directory clean by removing all orphaned cache files.
Additionally, run the following command afterwards inside the cache directory Additionally, run the following command afterwards inside the cache directory
to remove empty subdirectories: to remove empty subdirectories: