doc: update help message
This commit is contained in:
12
main.go
12
main.go
@@ -206,15 +206,15 @@ func Translate(
|
|||||||
|
|
||||||
var cli struct {
|
var cli struct {
|
||||||
Config string `short:"c" default:"~/.config/translate.toml" help:"Path to config file"`
|
Config string `short:"c" default:"~/.config/translate.toml" help:"Path to config file"`
|
||||||
BaseURL string `short:"b" help:"LLM API BASE URL" default:"https://api.openai.com/v1"`
|
BaseURL string `short:"b" help:"LLM API base URL" default:"https://api.openai.com/v1"`
|
||||||
ApiKey string `short:"k" help:"LLM API Key"`
|
ApiKey string `short:"k" help:"LLM API Key"`
|
||||||
Model string `short:"m" help:"LLM Model" default:"gpt-5-nano"`
|
Model string `short:"m" help:"LLM model" default:"gpt-5-nano"`
|
||||||
ReasoningEffort string `help:"LLM Reasoning Effort (remember some LLM maybe un-support some settings)" default:"minimal"`
|
ReasoningEffort string `help:"LLM reasoning effort (note that some LLMs may not support certain settings)" default:"minimal"`
|
||||||
Temperature *float64 `help:"LLM Temperature"`
|
Temperature *float64 `help:"LLM Temperature"`
|
||||||
Lang string `short:"l" help:"The target language" default:"zh-CN"`
|
Lang string `short:"l" help:"Target language" default:"zh-CN"`
|
||||||
ReverseLang string `help:"The target language when use -r" default:"en-US"`
|
ReverseLang string `help:"Target language when use -r" default:"en-US"`
|
||||||
Reverse bool `short:"r" help:"Set this flag to true to enable reverse translation"`
|
Reverse bool `short:"r" help:"Set this flag to true to enable reverse translation"`
|
||||||
Src []string `arg:"" optional:"" name:"src" help:"Text to translate or leave empty to use stdin"`
|
Src []string `arg:"" optional:"" name:"src" help:"Text to translate, or leave empty to use stdin"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
Reference in New Issue
Block a user