Skip to content
This repository was archived by the owner on Aug 20, 2020. It is now read-only.

Commit 0f7c88d

Browse files
author
R. S. Doiel
committed
requires cli v0.0.13
1 parent 49cc333 commit 0f7c88d

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

cmd/rss2json/rss2json.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
5959
`
6060

6161
// Standard options
62-
showHelp bool
63-
showVersion bool
64-
showLicense bool
65-
showExamples bool
66-
inputFName string
67-
outputFName string
68-
quiet bool
69-
newLine bool
70-
generateMarkdownDocs bool
62+
showHelp bool
63+
showVersion bool
64+
showLicense bool
65+
showExamples bool
66+
inputFName string
67+
outputFName string
68+
quiet bool
69+
newLine bool
70+
generateMarkdown bool
7171

7272
// Application options
7373
prettyPrint bool
@@ -94,7 +94,7 @@ func main() {
9494
app.BoolVar(&newLine, "nl,newline", false, "add trailing newline")
9595
app.StringVar(&inputFName, "i,input", "", "set input filename")
9696
app.StringVar(&outputFName, "o,output", "", "set output filename")
97-
app.BoolVar(&generateMarkdownDocs, "generate-markdown-docs", false, "generate Markdown documentation")
97+
app.BoolVar(&generateMarkdown, "generate-markdown", false, "generate Markdown documentation")
9898

9999
// Application Options
100100
app.BoolVar(&prettyPrint, "p,pretty", false, "pretty print XML output")
@@ -123,8 +123,8 @@ func main() {
123123
defer cli.CloseFile(outputFName, app.Out)
124124

125125
// Handle options
126-
if generateMarkdownDocs {
127-
app.GenerateMarkdownDocs(os.Stdout)
126+
if generateMarkdown {
127+
app.GenerateMarkdown(os.Stdout)
128128
os.Exit(0)
129129
}
130130
if showHelp || showExamples {

gen-usage-pages.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ if [ ! -d bin ]; then
66
fi
77
ls -1 bin/ | while read ITEM; do
88
D=$(basename "${ITEM}")
9-
"bin/${ITEM}" -generate-markdown-docs > "docs/${D}.md"
9+
"bin/${ITEM}" -generate-markdown > "docs/${D}.md"
1010
done

0 commit comments

Comments
 (0)