timprovem man page, change -s to -r - webdump - [FORK] git://git.codemadness.org/webdump
(HTM) git clone git://git.z3bra.org/webdump.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 87933418d5a1082772e9416156dbeef8ed9c652c
(DIR) parent 6b646d82367267f2edf62cbbd5affb67f9767225
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 29 Nov 2019 15:04:02 +0100
improvem man page, change -s to -r
change "-s" option to "-r" because I'm going to rewrite "soft" line-wrapping at
some point.
Diffstat:
M webdump.1 | 21 +++++++++++++--------
M webdump.c | 4 ++--
2 files changed, 15 insertions(+), 10 deletions(-)
---
(DIR) diff --git a/webdump.1 b/webdump.1
t@@ -1,4 +1,4 @@
-.Dd September 22, 2019
+.Dd November 29, 2019
.Dt WEBDUMP 1
.Os
.Sh NAME
t@@ -6,7 +6,7 @@
.Nd dump and render HTML to stdout
.Sh SYNOPSIS
.Nm
-.Op Fl als
+.Op Fl alr
.Op Fl b Ar baseurl
.Op Fl w Ar termwidth
.Sh DESCRIPTION
t@@ -16,15 +16,20 @@ It renders and writes the output as plain-text to stdout.
A
.Ar baseurl
can be specified if the links in the feed are relative urls.
-.Bl -tag
+.Bl -tag -width Ds
.It Fl a
Toggle ANSI escape codes usage.
+.It Fl b
+Base url of links.
+This it used to make links absolute.
.It Fl l
-Toggle wether link references are displayed or not.
-.It Fl s
-Toggle wether "soft-wrapping" mode is enabled. Only used if a
-.Ar termwidth
-is specified.
+Toggle if link references are displayed or not.
+.It Fl r
+Toggle if "soft" line-wrapping mode is enabled.
+.It Fl w
+The terminal width.
+The default is 72 characters.
+.El
.Sh SEE ALSO
.Xr ftp 1
.Sh AUTHORS
(DIR) diff --git a/webdump.c b/webdump.c
t@@ -811,7 +811,7 @@ printlinkrefs(void)
void
usage(void)
{
- fprintf(stderr, "%s [-als] [-b basehref] [-w termwidth]\n", argv0);
+ fprintf(stderr, "%s [-alr] [-b basehref] [-w termwidth]\n", argv0);
exit(1);
}
t@@ -831,7 +831,7 @@ main(int argc, char **argv)
case 'l':
showlinkrefs = !showlinkrefs;
break;
- case 's':
+ case 'r':
softlinewrap = !softlinewrap;
break;
case 'w':