mu-view: add --format=html

Support showing the HTML body (if any) instead of the default plain-text
body.

Update manpage.
This commit is contained in:
Dirk-Jan C. Binnema
2023-07-23 14:40:40 +03:00
parent 72f43f11df
commit 3337c9babb
5 changed files with 47 additions and 14 deletions

View File

@ -497,10 +497,13 @@ static void
sub_view(CLI::App& sub, Options& opts)
{
using Format = Options::View::Format;
static constexpr InfoEnum<Format, 2> FormatInfos = {{
static constexpr InfoEnum<Format, 3> FormatInfos = {{
{ Format::Plain,
{"plain", "Plain output"}
},
{ Format::Html,
{"html", "Plain output with HTML body"}
},
{ Format::Sexp,
{"sexp", "S-expressions"}
},