From d2e97f2acce2e6606c4ba7626fcf3875309865dc Mon Sep 17 00:00:00 2001 From: Steven Maude Date: Fri, 23 Apr 2021 19:01:50 +0100 Subject: [PATCH] Fix typo "is" > "if" in CLI cert help text (#63) * Fix typo "is" > "if" in main.go * Fix typo "is" > "if" in documentation Update to match the code. --- README.md | 2 +- cmd/hetty/main.go | 2 +- docs/src/guide/getting-started.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0457a1f..72430a1 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ Usage of ./hetty: -adminPath string File path to admin build -cert string - CA certificate filepath. Creates a new CA certificate is file doesn't exist (default "~/.hetty/hetty_cert.pem") + CA certificate filepath. Creates a new CA certificate if file doesn't exist (default "~/.hetty/hetty_cert.pem") -key string CA private key filepath. Creates a new CA private key if file doesn't exist (default "~/.hetty/hetty_key.pem") -projects string diff --git a/cmd/hetty/main.go b/cmd/hetty/main.go index f402cc9..d7fbef8 100644 --- a/cmd/hetty/main.go +++ b/cmd/hetty/main.go @@ -32,7 +32,7 @@ var ( ) func main() { - flag.StringVar(&caCertFile, "cert", "~/.hetty/hetty_cert.pem", "CA certificate filepath. Creates a new CA certificate is file doesn't exist") + flag.StringVar(&caCertFile, "cert", "~/.hetty/hetty_cert.pem", "CA certificate filepath. Creates a new CA certificate if file doesn't exist") flag.StringVar(&caKeyFile, "key", "~/.hetty/hetty_key.pem", "CA private key filepath. Creates a new CA private key if file doesn't exist") flag.StringVar(&projPath, "projects", "~/.hetty/projects", "Projects directory path") flag.StringVar(&addr, "addr", ":8080", "TCP address to listen on, in the form \"host:port\"") diff --git a/docs/src/guide/getting-started.md b/docs/src/guide/getting-started.md index 4f089f1..6c42ab6 100755 --- a/docs/src/guide/getting-started.md +++ b/docs/src/guide/getting-started.md @@ -77,7 +77,7 @@ Usage of ./hetty: -adminPath string File path to admin build -cert string - CA certificate filepath. Creates a new CA certificate is file doesn't exist (default "~/.hetty/hetty_cert.pem") + CA certificate filepath. Creates a new CA certificate if file doesn't exist (default "~/.hetty/hetty_cert.pem") -key string CA private key filepath. Creates a new CA private key if file doesn't exist (default "~/.hetty/hetty_key.pem") -projects string