* polish the code of cli.js