add --bar to enable statusbar
ref: https://codeberg.org/nsxiv/nsxiv/issues/404
This commit is contained in:
parent
55d60319db
commit
c61b84975d
10
etc/nsxiv.1
10
etc/nsxiv.1
|
@ -44,8 +44,14 @@ is set to 0 then animation playback is disabled.
|
||||||
.B "\-a, \-\-animate"
|
.B "\-a, \-\-animate"
|
||||||
Play animations of multi-frame images.
|
Play animations of multi-frame images.
|
||||||
.TP
|
.TP
|
||||||
.B "\-b, \-\-no\-bar"
|
.B "\-b"
|
||||||
Do not show statusbar at the bottom of the window.
|
Do not show statusbar.
|
||||||
|
.TP
|
||||||
|
.B "\-\-bar, \-\-no\-bar"
|
||||||
|
Enables or disables statusbar.
|
||||||
|
.B "\-\-no\-bar"
|
||||||
|
is equivalent to
|
||||||
|
.BR "\-b" .
|
||||||
.TP
|
.TP
|
||||||
.B "\-c, \-\-clean\-cache"
|
.B "\-c, \-\-clean\-cache"
|
||||||
Remove all orphaned cache files from the thumbnail cache directory and exit.
|
Remove all orphaned cache files from the thumbnail cache directory and exit.
|
||||||
|
|
|
@ -77,6 +77,7 @@ void parse_options(int argc, char **argv)
|
||||||
OPT_AA,
|
OPT_AA,
|
||||||
OPT_AL,
|
OPT_AL,
|
||||||
OPT_THUMB,
|
OPT_THUMB,
|
||||||
|
OPT_BAR,
|
||||||
OPT_BG,
|
OPT_BG,
|
||||||
OPT_CA,
|
OPT_CA,
|
||||||
OPT_CD
|
OPT_CD
|
||||||
|
@ -85,6 +86,7 @@ void parse_options(int argc, char **argv)
|
||||||
{ "framerate", 'A', OPTPARSE_REQUIRED },
|
{ "framerate", 'A', OPTPARSE_REQUIRED },
|
||||||
{ "animate", 'a', OPTPARSE_NONE },
|
{ "animate", 'a', OPTPARSE_NONE },
|
||||||
{ "no-bar", 'b', OPTPARSE_NONE },
|
{ "no-bar", 'b', OPTPARSE_NONE },
|
||||||
|
{ "bar", OPT_BAR, OPTPARSE_NONE },
|
||||||
{ "clean-cache", 'c', OPTPARSE_NONE },
|
{ "clean-cache", 'c', OPTPARSE_NONE },
|
||||||
{ "embed", 'e', OPTPARSE_REQUIRED },
|
{ "embed", 'e', OPTPARSE_REQUIRED },
|
||||||
{ "fullscreen", 'f', OPTPARSE_NONE },
|
{ "fullscreen", 'f', OPTPARSE_NONE },
|
||||||
|
@ -179,8 +181,8 @@ void parse_options(int argc, char **argv)
|
||||||
case 'a':
|
case 'a':
|
||||||
_options.animate = true;
|
_options.animate = true;
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b': case OPT_BAR:
|
||||||
_options.hide_bar = true;
|
_options.hide_bar = (opt == 'b');
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
_options.clean_cache = true;
|
_options.clean_cache = true;
|
||||||
|
|
Loading…
Reference in a new issue