Replace --header-file with --header (#346)

and allow using --header and --header-lines at the same time.

Close #346.
This commit is contained in:
Junegunn Choi
2015-09-15 19:04:53 +09:00
parent 65d9d416b4
commit 2022a3ad96
7 changed files with 71 additions and 45 deletions

View File

@@ -238,7 +238,7 @@ func Run(opts *Options) {
}
case EvtHeader:
terminal.UpdateHeader(value.([]string), opts.HeaderLines)
terminal.UpdateHeader(value.([]string))
case EvtSearchFin:
switch val := value.(type) {