Skip to content

Commit

Permalink
提交新的版本 v0.2 版本(修复bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
LJTian committed Sep 14, 2024
1 parent 7ff0f8a commit 81b2d81
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/help/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,11 @@ func init() {

// Generate LongDesc with formatted examples
func generateLongDesc(lang string) string {
var examples []string
var examples string
num := 1
examples = append(examples,"\n");
for _, example := range HelpData[lang].Examples {

examples = append(examples, fmt.Sprintf("%d. %s \n\t %s \n",num, example.Description, example.Command))
examples += fmt.Sprintf("%d. %s \n\t %s \n",num, example.Description, example.Command)
num++
}
return fmt.Sprintf("%s\n\nExamples:\n%s", HelpData[lang].ShortDesc,examples)
Expand Down

0 comments on commit 81b2d81

Please sign in to comment.