some improvement to cli.js

process.stdout