commands: Fix autocomplete docs

This commit is contained in:
Bjørn Erik Pedersen 2021-02-20 14:08:51 +01:00
parent b3504a0ee8
commit c8f45d1d86
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
1 changed files with 2 additions and 6 deletions

View File

@ -40,13 +40,9 @@ func newGenautocompleteCmd() *genautocompleteCmd {
Short: "Generate shell autocompletion script for Hugo",
Long: `Generates a shell autocompletion script for Hugo.
By default, the file is written directly to /etc/bash_completion.d
for convenience, and the command may need superuser rights, e.g.:
The script is written to the console (stdout).
$ sudo hugo gen autocomplete
Add ` + "`--completionfile=/path/to/file`" + ` flag to set alternative
file-path and name.
To write to file, add the ` + "`--completionfile=/path/to/file`" + ` flag.
Add ` + "`--type={bash, zsh, fish or powershell}`" + ` flag to set alternative
shell type.