helper/command: change prototype of command_print/command_print_sameline