diff options
Diffstat (limited to 'commands/genman.go')
-rw-r--r-- | commands/genman.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/genman.go b/commands/genman.go index 3dc8d3f52..68a98a46d 100644 --- a/commands/genman.go +++ b/commands/genman.go @@ -42,4 +42,7 @@ in the "man" directory under the current directory.`, func init() { genmanCmd.PersistentFlags().StringVar(&genmandir, "dir", "man/", "the directory to write the man pages.") + + // For bash-completion + genmanCmd.PersistentFlags().SetAnnotation("dir", cobra.BashCompSubdirsInDir, []string{}) } |