Added option -b: disable bar

This commit is contained in:
Bert Münnich
2012-02-16 23:20:27 +01:00
parent b418df7afc
commit 2d4264af28
6 changed files with 18 additions and 6 deletions

View File

@ -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;