Skip to content

Commit

Permalink
输出版本号时增加换行 (#97)
Browse files Browse the repository at this point in the history
* 优化usage显示信息

* 更新版本信息显示功能,去除进程名显示

* 更新测试用例

* 调整about信息显示

* 调整about显示模板

* 输出版本号时增加换行
  • Loading branch information
Greyh4t authored May 27, 2022
1 parent 1f7c8ab commit ed3731d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clop.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ func (c *Clop) genHelpMessage(h *Help) {

// 显示version信息
func (c *Clop) showVersion() {
fmt.Fprint(c.w, c.version)
fmt.Fprintln(c.w, c.version)
if c.exit {
os.Exit(0)
}
Expand Down

0 comments on commit ed3731d

Please sign in to comment.