rename showinfo option to info

Related to #39.
This commit is contained in:
Gokcehan committed 2017-02-04 21:33:36 +03:00
1 parent d605781d09
commit c55c4bf254
8 files changed
+30 -30

No files matched your search

+2 -2
View File
@@ -288,14 +288,14 @@ func (win *win) printd(dir *dir, marks map[string]int, saves map[string]bool) {
var info string
for _, s := range gOpts.showinfo {
for _, s := range gOpts.info {
switch s {
case "size":
info = fmt.Sprintf("%s %4s", info, humanize(f.Size()))
case "time":
info = fmt.Sprintf("%s %12s", info, f.ModTime().Format("Jan _2 15:04"))
default:
log.Printf("unknown showinfo type: %s", s)
log.Printf("unknown info type: %s", s)
}
}