update manpage, usage
This commit is contained in:
parent
51ebc2570d
commit
c98635b3f0
|
@ -29,6 +29,12 @@ sudo cp mdcheckr /usr/local/bin
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
```
|
||||||
|
mdcheckr [ -h | --help ] [ -v | --version ] FILE ..
|
||||||
|
```
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
Check a single markdown file:
|
Check a single markdown file:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -46,6 +52,3 @@ Check all the markdown files in your Git repository:
|
||||||
```bash
|
```bash
|
||||||
git ls-files | grep '\.md$' | tr '\n' '\0' | xargs -0 mdcheckr
|
git ls-files | grep '\.md$' | tr '\n' '\0' | xargs -0 mdcheckr
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
2
mdcheckr
2
mdcheckr
|
@ -227,7 +227,7 @@ function explain() {
|
||||||
# Parse command-line optins...
|
# Parse command-line optins...
|
||||||
function show_usage() {
|
function show_usage() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
usage: mdcheckr [ -h | --help | -v | --version ] FILE ..
|
usage: mdcheckr [ -h | --help ] [ -v | --version ] FILE ..
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
mdcheckr \- check markdown files for broken links and other errors.
|
mdcheckr \- check markdown files for broken links and other errors.
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B mdcheckr
|
.B mdcheckr
|
||||||
.IR file ...
|
[ \-h | --help ] [ -v | --version ] FILE ..
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B mdcheckr
|
.B mdcheckr
|
||||||
checks for broken internal and external links, as well as syntax issues with
|
checks for broken internal and external links, as well as syntax issues with
|
||||||
|
|
Loading…
Reference in New Issue