summary refs log tree commit diff
diff options
context:
space:
mode:
authorCurtis McEnroe2018-09-11 16:10:49 -0400
committerCurtis McEnroe2018-09-11 16:10:49 -0400
commit3d9f808a600e33a444f8dd666a4e379c282e388b (patch)
treef15eb940bcafafa46bd84a63a3020bab3e49c562
parent2c65f663bf76cf02694fecd58a6f9f902ad8bf99 (diff)
Add /help equivalent to /man
-rw-r--r--chatte.18
-rw-r--r--input.c1
2 files changed, 6 insertions, 3 deletions
diff --git a/chatte.1 b/chatte.1
index 980b152..fb9e2ac 100644
--- a/chatte.1
+++ b/chatte.1
@@ -97,6 +97,10 @@ Close the current view.
 All views after the current one
 are renumbered.
 .
+.It Ic /help
+Equivalent to
+.Ic /man .
+.
 .It Ic /join Ar chan
 Join a channel.
 .
@@ -349,9 +353,7 @@ usually the client IP address.
 .El
 .
 .Sh EXAMPLES
-.Bd -literal -offset indent
-chatte -h ascii.town -j '&chatte'
-.Ed
+.Dl chatte -h ascii.town -j '&chatte'
 .
 .Sh STANDARDS
 .Rs
diff --git a/input.c b/input.c
index 4497010..25e8a0d 100644
--- a/input.c
+++ b/input.c
@@ -152,6 +152,7 @@ static const struct {
 	Handler handler;
 } Commands[] = {
 	{ "/close", inputClose },
+	{ "/help", inputMan },
 	{ "/join", inputJoin },
 	{ "/man", inputMan },
 	{ "/me", inputMe },