From 584544ff7fa63ec895ad8faf231c242ce05dfee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Fiala?= Date: Sat, 2 Jul 2022 04:45:59 +0200 Subject: [PATCH] gmnlm: tidy up help message * make marking of mandatory arguments consistent * document the 'i' command * don't document commands explained by the prompt * unify alignment * minor wording adjustments --- src/gmnlm.c | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/src/gmnlm.c b/src/gmnlm.c index e539361..53ec416 100644 --- a/src/gmnlm.c +++ b/src/gmnlm.c @@ -74,22 +74,19 @@ const char *default_bookmarks = const char *help_msg = "The following commands are available:\n\n" - "q\tQuit\n" - "N\tFollow Nth link (where N is a number)\n" - "p[N]\tShow URL of Nth link (where N is a number)\n" - "b[N]\tJump back N entries in history, N is optional, default 1\n" - "f[N]\tJump forward N entries in history, N is optional, default 1\n" - "H\tView all page history\n" - "m [title]\tSave bookmark\n" - "M\tBrowse bookmarks\n" - "r\tReload the page\n" - "d[N] [path]\tDownload page, or Nth link, to path\n" - "[N]|\tPipe page, or Nth link, into program\n" - "\n" - "Other commands include:\n\n" - "\tread more lines\n" - "\tgo to url\n" - "/\tsearch for text (POSIX regular expression)\n" + "q\r\t\tQuit\n" + "\r\t\tFollow Nth link\n" + "p\r\t\tShow URL of Nth link\n" + "b[N]\r\t\tJump back N entries in history, default is 1\n" + "f[N]\r\t\tJump forward N entries in history, default is 1\n" + "H\r\t\tView all page history\n" + "m [title]\r\t\tSave bookmark\n" + "M\r\t\tBrowse bookmarks\n" + "r\r\t\tReload the page\n" + "i\r\t\tShow MIME type parameters\n" + "d[N] [path]\r\t\tDownload page, or Nth link, to path\n" + "[N]|\r\t\tPipe page, or Nth link, into program\n" + "/\r\t\tSearch for regular expression (POSIX ERE)\n" ; static void