Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Enable Autocomplete with NewCLI
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jul 17, 2017
1 parent 613d119 commit 64e7303
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ type CLI struct {
// NewClI returns a new CLI instance with sensible defaults.
func NewCLI(app, version string) *CLI {
return &CLI{
Name: app,
Version: version,
HelpFunc: BasicHelpFunc(app),
Name: app,
Version: version,
HelpFunc: BasicHelpFunc(app),
Autocomplete: true,
}

}
Expand Down

0 comments on commit 64e7303

Please sign in to comment.