Fix interactive command usage.

Refactor previous-line, goto-line.