summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-16 16:47:12 +0100
committerBert <ber.t@gmx.com>2011-02-16 16:47:12 +0100
commit7b497406136dabcce280bae3886a88ee77ebc1e7 (patch)
treeec183d7ff703de99d5f3e9eb1b65c0d11a046774 /options.c
parente8ed491ba9f2fe6df8f071e7c59e0174bb307a1b (diff)
downloadnsxiv-7b497406136dabcce280bae3886a88ee77ebc1e7.tar.zst
First things for thumbnail mode
Diffstat (limited to 'options.c')
-rw-r--r--options.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/options.c b/options.c
index 0a1aeda..2291ded 100644
--- a/options.c
+++ b/options.c
@@ -30,7 +30,7 @@ options_t _options;
const options_t *options = (const options_t*) &_options;
void print_usage() {
- printf("usage: sxiv [-dFfhpqrsvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n");
+ printf("usage: sxiv [-dFfhpqrstvZ] [-g GEOMETRY] [-z ZOOM] FILES...\n");
}
void print_version() {
@@ -45,6 +45,7 @@ void parse_options(int argc, char **argv) {
_options.scalemode = SCALE_MODE;
_options.zoom = 1.0;
_options.aa = 1;
+ _options.thumbnails = 0;
_options.fixed = 0;
_options.fullscreen = 0;
@@ -53,7 +54,7 @@ void parse_options(int argc, char **argv) {
_options.quiet = 0;
_options.recursive = 0;
- while ((opt = getopt(argc, argv, "dFfg:hpqrsvZz:")) != -1) {
+ while ((opt = getopt(argc, argv, "dFfg:hpqrstvZz:")) != -1) {
switch (opt) {
case '?':
print_usage();
@@ -85,6 +86,9 @@ void parse_options(int argc, char **argv) {
case 's':
_options.scalemode = SCALE_FIT;
break;
+ case 't':
+ _options.thumbnails = 1;
+ break;
case 'v':
print_version();
exit(0);