summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-08-27 15:30:05 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-08-27 15:30:05 +0200
commitc9787e8b1750a5f58ac759579e72a53ed752026d (patch)
treeadc7444c9bd510ce74a55d652a80e8743344c582 /src
parent3fa9729cc81132e72bee95cf4287e185c48b73d3 (diff)
Add short option -Y for --hide-pointer
Diffstat (limited to 'src')
-rw-r--r--src/help.raw2
-rw-r--r--src/options.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/help.raw b/src/help.raw
index 6d872da..7d0b22d 100644
--- a/src/help.raw
+++ b/src/help.raw
@@ -108,7 +108,7 @@ OPTIONS
any mode -- just use the button (default=off).
--no-xinerama Disable Xinerama support
--no-screen-clip Do not limit window size to screen size
- --hide-pointer Hide the pointer
+ -Y, --hide-pointer Hide the pointer
MONTAGE MODE OPTIONS
-X, --ignore-aspect Set thumbnail to specified width/height without
diff --git a/src/options.c b/src/options.c
index 08482ea..89fbe62 100644
--- a/src/options.c
+++ b/src/options.c
@@ -316,7 +316,7 @@ char *feh_string_normalize(char *str)
static void feh_parse_option_array(int argc, char **argv)
{
static char stropts[] =
- "a:A:b:B:cC:dD:e:E:f:Fg:GhH:iIj:J:kK:lL:mM:nNo:O:pPqQrR:sS:tT:uUvVwW:xXy:zZ"
+ "a:A:b:B:cC:dD:e:E:f:Fg:GhH:iIj:J:kK:lL:mM:nNo:O:pPqQrR:sS:tT:uUvVwW:xXy:YzZ"
"0:1:2:4:5:8:9:.@:^:~:):|:_:+:";
static struct option lopts[] = {
{"help" , 0, 0, 'h'},
@@ -348,7 +348,7 @@ static void feh_parse_option_array(int argc, char **argv)
{"builtin" , 0, 0, 'Q'},
{"scale-down" , 0, 0, '.'},
{"no-jump-on-resort", 0, 0, 220},
- {"hide-pointer" , 0, 0, 221},
+ {"hide-pointer" , 0, 0, 'Y'},
{"draw-actions" , 0, 0, 'G'},
{"cache-thumbnails", 0, 0, 'P'},
{"cycle-once" , 0, 0, 224},
@@ -725,7 +725,7 @@ static void feh_parse_option_array(int argc, char **argv)
case 220:
opt.jump_on_resort = 0;
break;
- case 221:
+ case 'Y':
opt.hide_pointer = 1;
break;
case 'G':