dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

Undefined is being printed after latest release #167

Closed alansouzati closed 8 years ago

alansouzati commented 8 years ago

Whenever my vorpal is displayed I'm experiencing the scenario where I have the delimiter plus an undefined into parenthesis:

grommet~$ (undefined)

It seems this was an issue introduced after this commit:https://github.com/dthree/vorpal/commit/f8646d0a3b31630396f2cf64e5075e10e4e60835

The idea I guess is to show the default value for prompts, which is really nice. I believe the check should not be only for null, but for undefined as well.