From: Wayne Davison Date: Wed, 3 Aug 2022 15:55:26 +0000 (-0700) Subject: Some md-convert doc tweaks. X-Git-Tag: v3.2.5pre2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0d8cc26044fe5c543f69206642666bfa7ee053f7;p=thirdparty%2Frsync.git Some md-convert doc tweaks. --- diff --git a/INSTALL.md b/INSTALL.md index 5b23ed0e..1605ab43 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -26,7 +26,7 @@ build user (after installing python3's pip package): You can test if you've got it fixed by running (from the rsync checkout): -> ./md2man --test rsync-ssl.1.md +> ./md-convert --test rsync-ssl.1.md Alternately, you can avoid generating the manpages by fetching the very latest versions (that match the latest git source) from the [generated-files][6] dir. diff --git a/md-convert b/md-convert index fb60b093..19709c8d 100755 --- a/md-convert +++ b/md-convert @@ -609,12 +609,12 @@ def die(*msg): if __name__ == '__main__': - parser = argparse.ArgumentParser(description="Output html and (optionally) nroff for markdown pages.", add_help=False) + parser = argparse.ArgumentParser(description="Convert markdown into html and (optionally) nroff. Each input filename must have a .md suffix, which is changed to .html for the output filename. If the input filename ends with .num.md (e.g. foo.1.md) then a nroff file is also output with the input filename's .md suffix removed (e.g. foo.1).", add_help=False) parser.add_argument('--test', action='store_true', help="Just test the parsing without outputting any files.") - parser.add_argument('--dest', metavar='DIR', help="Put files into DIR instead of the current directory.") + parser.add_argument('--dest', metavar='DIR', help="Create files in DIR instead of the current directory.") parser.add_argument('--debug', '-D', action='count', default=0, help='Output copious info on the html parsing. Repeat for even more.') parser.add_argument("--help", "-h", action="help", help="Output this help message and exit.") - parser.add_argument("mdfiles", nargs='+', help="The source .md files to convert.") + parser.add_argument("mdfiles", metavar='FILE.md', nargs='+', help="One or more .md files to convert.") args = parser.parse_args() try: