Skip to content

Commit

Permalink
chore: update help message
Browse files Browse the repository at this point in the history
  • Loading branch information
kardolus committed Dec 9, 2024
1 parent d022252 commit b0a692b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/chatgpt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ func setCustomHelp(rootCmd *cobra.Command) {
printFlagWithPadding("--delete-thread", "Delete the specified thread")
printFlagWithPadding("--clear-history", "Clear the history of the current thread")
printFlagWithPadding("--show-history [thread]", "Show the human-readable conversation history")
printFlagWithPadding("--role-file", "Provide a file to set the system role")
printFlagWithPadding("--set-completions", "Generate autocompletion script for your current shell")
fmt.Println()

Expand Down Expand Up @@ -655,7 +656,7 @@ func isNonConfigSetter(name string) bool {

func isGeneralFlag(name string) bool {
switch name {
case "query", "interactive", "config", "version", "new-thread", "list-models", "list-threads", "clear-history", "delete-thread", "show-history", "prompt", "set-completions", "help":
case "query", "interactive", "config", "version", "new-thread", "list-models", "list-threads", "clear-history", "delete-thread", "show-history", "prompt", "set-completions", "help", "role-file":
return true
default:
return false
Expand Down

0 comments on commit b0a692b

Please sign in to comment.