summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-20 00:28:28 +0100
committerBert <ber.t@gmx.com>2011-02-20 00:28:28 +0100
commitf0f6644fae8673378936a15781ce96e55f66bec4 (patch)
tree69e539a0292ab8441de45de3fc924e87daef8a7a /options.c
parenta30901210cfde971bac780b5c0bbdeda215ea809 (diff)
downloadnsxiv-f0f6644fae8673378936a15781ce96e55f66bec4.tar.zst
Replaced -T flag with -tt; default thumbnail size
Diffstat (limited to 'options.c')
-rw-r--r--options.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/options.c b/options.c
index ca3be0c..ac9ae86 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 [-dFfhpqrsTtvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n");
+ printf("usage: sxiv [-dFfhpqrstvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n");
}
void print_version() {
@@ -54,7 +54,7 @@ void parse_options(int argc, char **argv) {
_options.quiet = 0;
_options.recursive = 0;
- while ((opt = getopt(argc, argv, "dFfg:hpqrsTtvZz:")) != -1) {
+ while ((opt = getopt(argc, argv, "dFfg:hpqrstvZz:")) != -1) {
switch (opt) {
case '?':
print_usage();
@@ -86,11 +86,9 @@ void parse_options(int argc, char **argv) {
case 's':
_options.scalemode = SCALE_FIT;
break;
- case 'T':
- _options.thumbnails = 2;
- break;
case 't':
- _options.thumbnails = MAX(_options.thumbnails, 1);
+ if (_options.thumbnails < 2)
+ ++_options.thumbnails;
break;
case 'v':
print_version();