From 8bab1e584188a8dfe0bb8889de923f42e4123c85 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@derf.homelinux.org>
Date: Tue, 9 Feb 2010 17:23:15 +0100
Subject: [PATCH] Add/Update undocumented short options to --help and manual

---
 feh.1         | 8 ++++----
 src/options.c | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/feh.1 b/feh.1
index 2416dd9..0c6f9ce 100644
--- a/feh.1
+++ b/feh.1
@@ -92,7 +92,7 @@ the second only errors.
 .B -T, --theme THEME
 Load options from config file with name THEME - see CONFIG FILE SYNTAX for more info.
 .TP 5
-.B --rcfile FILE
+.B -_, --rcfile FILE
 Use FILE to parse themes and options from,
 instead of the default ~/.fehrc, /etc/fehrc files.
 .TP 5
@@ -281,7 +281,7 @@ managers.
 .B -M, --menu-font FONT
 Use FONT for the font in menus.
 .TP 5
-.B --fontpath PATH
+.B -C, --fontpath PATH
 Specify PATH as an extra directory in which to search for fonts, can use
 multiple times to add multiple paths, e.g \-\-fontpath /path/a \-\-fontpath
 /path/b.
@@ -304,7 +304,7 @@ Don't load or show any menus.
 Use STYLE as background for transparent image parts and the like.
 Accepted values: white, black, default.
 .TP 5
-.B --title TITLE
+.B -^, --title TITLE
 Use TITLE as window title in slideshow mode.
 .TP 5
 .B -1, --next-button B
@@ -445,7 +445,7 @@ truetype font, resident in the current directory, or in feh's font
 directory, and should be defined in the form fontname/size(points). (No
 extension). eg. \-\-font myfont/12
 .TP 5
-.B --title-font FONT
+.B -@, --title-font FONT
 Use FONT to print a title on the index, if no font is specified, a title
 will not be printed
 .SH CONFIG FILE SYNTAX
diff --git a/src/options.c b/src/options.c
index 96c5be2..8aa0436 100644
--- a/src/options.c
+++ b/src/options.c
@@ -859,7 +859,7 @@ show_usage(void)
 "                           second only errors.\n"
 " -T, --theme THEME         Load options from config file with name THEME\n"
 "                           see man feh for more info.\n"
-"     --rcfile FILE         Use FILE to parse themes and options from,\n"
+" -_, --rcfile FILE         Use FILE to parse themes and options from,\n"
 "                           instead of the default ~/.fehrc, /etc/fehrc files.\n"
 " -r, --recursive           Recursively expand any directories in FILE to\n"
 "                           the content of those directories. (Take it easy)\n"
@@ -905,7 +905,7 @@ show_usage(void)
 "                           mode, multiple windows will be opened.\n"
 " -x, --borderless          Create borderless windows\n"
 " -d, --draw-filename       Draw the filename at the top-left of the image.\n"
-"     --title TITLE         Use TITLE as the window title in slideshow mode.\n"
+" -^, --title TITLE         Use TITLE as the window title in slideshow mode.\n"
 " -D, --slideshow-delay NUM For slideshow mode, specifies time delay (seconds,\n"
 "                           can be a decimal) between automatically changing\n"
 "                           slides.\n"
@@ -1001,7 +1001,7 @@ show_usage(void)
 "                           X startup script (e.g. ~/.xsession). Note that\n"
 "                           you only need to do this for non E window\n"
 "                           managers.\n"
-"     --fontpath PATH       Specify an extra directory to look in for fonts,\n"
+" -C, --fontpath PATH       Specify an extra directory to look in for fonts,\n"
 "                           can be used multiple times to add multiple paths.\n"
 " -M, --menu-font FONT      Use FONT for the font in menus.\n"
 "     --menu-style FILE     Use FILE as the style descriptor for menu text.\n"
@@ -1089,7 +1089,7 @@ show_usage(void)
 " -e FONT                   Use FONT to print the information under each\n"
 "                           thumbnail. FONT should be defined in the form\n"
 "                           fontname/size(points). eg -e myfont/12\n"
-" -t, --title-font FONT     Use FONT to print a title on the index, if no\n"
+" -@, --title-font FONT     Use FONT to print a title on the index, if no\n"
 "                           font is specified, a title will not be printed\n"
 " SLIDESHOW KEYS\n"
 " The default mode for viewing mulitple images is Slideshow mode\n"
-- 
GitLab