diff --git a/cmd/minify/README.md b/cmd/minify/README.md index 47e3390f9f..a0617e6b58 100644 --- a/cmd/minify/README.md +++ b/cmd/minify/README.md @@ -2,7 +2,7 @@ **[Download binaries](https://dl.equinox.io/tdewolff/minify/stable) for Windows, Linux and Mac OS X** -Minify is a CLI implemention of the minify [library package](https://github.com/tdewolff/minify/blob/master/README.md). +Minify is a CLI implementation of the minify [library package](https://github.com/tdewolff/minify/blob/master/README.md). ## Installation Make sure you have [Go](http://golang.org/) and [Git](http://git-scm.com/) installed. @@ -25,7 +25,7 @@ and the `minify` command will be in your `$GOPATH/bin`. --match string Filename pattern matching using regular expressions, see https://github.com/google/re2/wiki/Syntax --mime string - Mimetype (text/css, application/javascript, ...), optional for input filenames, has precendence over -type + Mimetype (text/css, application/javascript, ...), optional for input filenames, has precedence over -type -o, --output string Output file or directory (must have trailing slash), leave blank to use stdout -r, --recursive diff --git a/cmd/minify/main.go b/cmd/minify/main.go index 145f8da597..8620b63072 100644 --- a/cmd/minify/main.go +++ b/cmd/minify/main.go @@ -85,7 +85,7 @@ func main() { fmt.Fprintf(os.Stderr, "\nInput:\n Files or directories, leave blank to use stdin\n") } flag.StringVarP(&output, "output", "o", "", "Output file or directory (must have trailing slash), leave blank to use stdout") - flag.StringVar(&mimetype, "mime", "", "Mimetype (text/css, application/javascript, ...), optional for input filenames, has precendence over -type") + flag.StringVar(&mimetype, "mime", "", "Mimetype (text/css, application/javascript, ...), optional for input filenames, has precedence over -type") flag.StringVar(&filetype, "type", "", "Filetype (css, html, js, ...), optional for input filenames") flag.StringVar(&match, "match", "", "Filename pattern matching using regular expressions, see https://github.com/google/re2/wiki/Syntax") flag.BoolVarP(&recursive, "recursive", "r", false, "Recursively minify directories")