add line json output support, and command help fix