summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-09-10 12:29:54 +0200
committerBert <ber.t@gmx.com>2011-09-10 12:29:54 +0200
commit79d780a701e47ea1aacf49728e28900bb2b17743 (patch)
tree902000e360f42adcead74e7d70bcbbcb2665f0ab /options.c
parent6e575b0f721e1743fab098004d7dc26de5c7db49 (diff)
downloadnsxiv-79d780a701e47ea1aacf49728e28900bb2b17743.tar.zst
List additional features in usage message (-v)
Diffstat (limited to 'options.c')
-rw-r--r--options.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/options.c b/options.c
index 853a72f..8532be1 100644
--- a/options.c
+++ b/options.c
@@ -33,11 +33,24 @@ options_t _options;
const options_t *options = (const options_t*) &_options;
void print_usage() {
- printf("usage: sxiv [-cdFfhpqrstvZ] [-g GEOMETRY] [-n NUM] [-z ZOOM] FILES...\n");
+ printf("usage: sxiv [-cdFfhpqrstvZ] [-g GEOMETRY] [-n NUM] "
+ "[-z ZOOM] FILES...\n");
}
void print_version() {
- printf("sxiv %s - simple x image viewer\n", VERSION);
+ printf("sxiv %s - Simple X Image Viewer\n", VERSION);
+ printf("Additional features included (+) or not (-): %s, %s\n",
+#ifdef EXIF_SUPPORT
+ "+exif",
+#else
+ "-exif",
+#endif
+#ifdef GIF_SUPPORT
+ "+gif"
+#else
+ "-gif"
+#endif
+ );
}
void parse_options(int argc, char **argv) {
@@ -119,9 +132,8 @@ void parse_options(int argc, char **argv) {
fprintf(stderr, "sxiv: invalid argument for option -z: %s\n",
optarg);
exit(1);
- } else {
- _options.zoom = z / 100.0;
}
+ _options.zoom = z / 100.0;
break;
}
}