Skip to content

Commit

Permalink
improve documentation around stdout/stderr logging
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Apr 5, 2024
1 parent 160945f commit 388f7bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ Usage: hc-install install [options] -version <version> <product>
This command installs a HashiCorp product.
Options:
-version [REQUIRED] Version of product to install.
-path Path to directory where the product will be installed. Defaults
to current working directory.
-path Path to directory where the product will be installed.
Defaults to current working directory.
-log-file Path to file where logs will be written. /dev/stdout
or /dev/stderr can be used to log to STDOUT/STDERR.
```
```sh
hc-install install -version 1.3.7 terraform
Expand Down
7 changes: 4 additions & 3 deletions cmd/hc-install/cmd_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ Usage: hc-install install [options] -version <version> <product>
This command installs a HashiCorp product.
Options:
-version [REQUIRED] Version of product to install.
-path Path to directory where the product will be installed. Defaults
to current working directory.
-log-file Path to file where logs will be written
-path Path to directory where the product will be installed.
Defaults to current working directory.
-log-file Path to file where logs will be written. /dev/stdout
or /dev/stderr can be used to log to STDOUT/STDERR.
`
return strings.TrimSpace(helpText)
}
Expand Down

0 comments on commit 388f7bf

Please sign in to comment.