Skip to content

Commit

Permalink
Update version command
Browse files Browse the repository at this point in the history
  • Loading branch information
kardolus committed Jun 2, 2024
1 parent 6524ea7 commit 89871da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/chatgpt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ func main() {
func run(cmd *cobra.Command, args []string) error {
// Flags that do not require an API key
if showVersion {
fmt.Printf("ChatGPT CLI version %s (commit %s)\n", GitVersion, GitCommit)
if GitCommit != "homebrew" {
GitCommit = "commit " + GitCommit
}
fmt.Printf("ChatGPT CLI version %s (%s)\n", GitVersion, GitCommit)
return nil
}

Expand Down

0 comments on commit 89871da

Please sign in to comment.