update manpage, usage

This commit is contained in:
Michael 2017-06-06 16:34:46 +10:00
parent 51ebc2570d
commit c98635b3f0
3 changed files with 8 additions and 5 deletions

View File

@ -29,6 +29,12 @@ sudo cp mdcheckr /usr/local/bin
## Usage
```
mdcheckr [ -h | --help ] [ -v | --version ] FILE ..
```
## Examples
Check a single markdown file:
```
@ -46,6 +52,3 @@ Check all the markdown files in your Git repository:
```bash
git ls-files | grep '\.md$' | tr '\n' '\0' | xargs -0 mdcheckr
```

View File

@ -227,7 +227,7 @@ function explain() {
# Parse command-line optins...
function show_usage() {
cat << EOF
usage: mdcheckr [ -h | --help | -v | --version ] FILE ..
usage: mdcheckr [ -h | --help ] [ -v | --version ] FILE ..
EOF
}

View File

@ -3,7 +3,7 @@
mdcheckr \- check markdown files for broken links and other errors.
.SH SYNOPSIS
.B mdcheckr
.IR file ...
[ \-h | --help ] [ -v | --version ] FILE ..
.SH DESCRIPTION
.B mdcheckr
checks for broken internal and external links, as well as syntax issues with