1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Fri, 15 Nov 2019 14:43:52 -1000
Subject: Adapt output to help2man expectations
---
bin/html-to-markdown | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/bin/html-to-markdown b/bin/html-to-markdown
index 88cfa39..1a8c5bf 100755
--- a/bin/html-to-markdown
+++ b/bin/html-to-markdown
@@ -57,27 +57,29 @@ HTML To Markdown
Usage: html-to-markdown [OPTIONS] [FILE]
- -h, --help Shows help and usage information
+If no file is given, input will be read from STDIN
- If no file is given, input will be read from STDIN
+Options:
+
+-h, --help Shows help and usage information
Examples:
- Converting a file named document.html:
+Converting a file named document.html:
- html-to-markdown document.html
+ html-to-markdown document.html
- Converting a file and saving its output:
+Converting a file and saving its output:
- html-to-markdown document.html > output.md
+ html-to-markdown document.html > output.md
- Converting from STDIN:
+Converting from STDIN:
- echo -e '<h1>Hello World!</h1>' | html-to-markdown
+ echo -e '<h1>Hello World!</h1>' | html-to-markdown
- Converting from STDIN and saving the output:
+Converting from STDIN and saving the output:
- echo -e '<h1>Hello World!</h1>' | html-to-markdown > output.md
+ echo -e '<h1>Hello World!</h1>' | html-to-markdown > output.md
HELP;
}
|