summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2012-02-16 23:20:27 +0100
committerBert Münnich <ber.t@gmx.com>2012-02-16 23:20:27 +0100
commit2d4264af286db2a746d600139a12472841c2677d (patch)
tree53a65b90464e29d5e1dd5b3504a9a7bedb6e712d /options.c
parentb418df7afc01796254fdf24d4afe12da3f0795bd (diff)
downloadnsxiv-2d4264af286db2a746d600139a12472841c2677d.tar.zst
Added option -b: disable bar
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 474eaf4..deec097 100644
--- a/options.c
+++ b/options.c
@@ -32,7 +32,7 @@ options_t _options;
const options_t *options = (const options_t*) &_options;
void print_usage(void) {
- printf("usage: sxiv [-cdFfhpqrstvZ] [-g GEOMETRY] [-n NUM] "
+ printf("usage: sxiv [-bcdFfhpqrstvZ] [-g GEOMETRY] [-n NUM] "
"[-z ZOOM] FILES...\n");
}
@@ -52,17 +52,21 @@ void parse_options(int argc, char **argv) {
_options.fixed_win = false;
_options.fullscreen = false;
+ _options.hide_bar = false;
_options.geometry = NULL;
_options.quiet = false;
_options.thumb_mode = false;
_options.clean_cache = false;
- while ((opt = getopt(argc, argv, "cdFfg:hn:pqrstvZz:")) != -1) {
+ while ((opt = getopt(argc, argv, "bcdFfg:hn:pqrstvZz:")) != -1) {
switch (opt) {
case '?':
print_usage();
exit(EXIT_FAILURE);
+ case 'b':
+ _options.hide_bar = true;
+ break;
case 'c':
_options.clean_cache = true;
break;