some improvement to cli.js

sorry for the carelessness..