JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix man page and usage()
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Sun, 17 Aug 2014 18:49:33 +0000 (20:49 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Sun, 17 Aug 2014 18:49:33 +0000 (20:49 +0200)
Man page was repeating -f option, the second time instead of -i,
and this option was lost in usage() message. This patch also indent
the output of usage().

st.1
st.c

diff --git a/st.1 b/st.1
index 7174da2..e655530 100644 (file)
--- a/st.1
+++ b/st.1
@@ -42,7 +42,7 @@ The form is [=][<cols>{xX}<rows>][{+-}<xoffset>{+-}<yoffset>]. See
 .BR XParseGeometry (3)
 for further details.
 .TP
-.B \-f
+.B \-i
 will fixate the position given with the -g option.
 .TP
 .BI \-o " file"
diff --git a/st.c b/st.c
index 6e5953a..8f19018 100644 (file)
--- a/st.c
+++ b/st.c
@@ -3870,8 +3870,8 @@ run(void) {
 void
 usage(void) {
        die("%s " VERSION " (c) 2010-2014 st engineers\n" \
-       "usage: st [-a] [-v] [-c class] [-f font] [-g geometry] [-o file]" \
-       " [-t title] [-w windowid] [-e command ...]\n", argv0);
+       "usage: st [-a] [-v] [-c class] [-f font] [-g geometry] [-o file]\n"
+       "          [-i] [-t title] [-w windowid] [-e command ...]\n", argv0);
 }
 
 int