Fixed a small bug with the export command

This commit is contained in:
Leon Mika 2022-05-19 10:58:56 +10:00
parent 33e10299cf
commit 3319a9d4aa

View file

@ -44,7 +44,7 @@ func NewModel(rc *controllers.TableReadController, wc *controllers.TableWriteCon
if len(args) == 0 {
return events.SetError(errors.New("expected filename"))
}
return rc.ExportCSV(args[1])
return rc.ExportCSV(args[0])
},
"unmark": commandctrl.NoArgCommand(rc.Unmark()),
"delete": commandctrl.NoArgCommand(wc.DeleteMarked()),