Skip to content

Commit a76365c

Browse files
authored
Merge pull request #582 from noborus/improve-help
Improved help explanations
2 parents 755a4f7 + 1d60430 commit a76365c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ func init() {
409409
rootCmd.PersistentFlags().BoolP("section-header", "", false, "enable section-delimiter line as Header")
410410
_ = viper.BindPFlag("general.SectionHeader", rootCmd.PersistentFlags().Lookup("section-header"))
411411

412-
rootCmd.PersistentFlags().IntP("section-header-num", "", 1, "number of header lines")
412+
rootCmd.PersistentFlags().IntP("section-header-num", "", 1, "number of section header lines")
413413
_ = viper.BindPFlag("general.SectionHeaderNum", rootCmd.PersistentFlags().Lookup("section-header-num"))
414414

415415
rootCmd.PersistentFlags().BoolP("follow-mode", "f", false, "monitor file and display new content as it is written")

oviewer/keybind.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ func (k KeyBind) String() string {
331331
k.writeKeyBind(&b, actionAlternate, "alternate rows of style toggle")
332332
k.writeKeyBind(&b, actionLineNumMode, "line number toggle")
333333
k.writeKeyBind(&b, actionPlain, "original decoration toggle(plain)")
334-
k.writeKeyBind(&b, actionHideOther, "toggle hide other section")
335334

336335
writeHeader(&b, "Change Display with Input")
337336
k.writeKeyBind(&b, actionViewMode, "view mode selection")
@@ -349,7 +348,8 @@ func (k KeyBind) String() string {
349348
k.writeKeyBind(&b, actionPrevSection, "previous section")
350349
k.writeKeyBind(&b, actionLastSection, "last section")
351350
k.writeKeyBind(&b, actionFollowSection, "follow section mode toggle")
352-
k.writeKeyBind(&b, actionSectionNum, "section header number")
351+
k.writeKeyBind(&b, actionSectionNum, "number of section header lines")
352+
k.writeKeyBind(&b, actionHideOther, "toggle hide other section")
353353

354354
writeHeader(&b, "Close and reload")
355355
k.writeKeyBind(&b, actionCloseFile, "close file")

0 commit comments

Comments
 (0)