flatiron/prompt — pull request #48 by jesusabdullah (2012-08-19 07:56:44+00:00)
Title: [fix] When performing validation, gracefully handle the case of numeric inputs with parseFloat

This changes prompt so that it can take numeric input for numeric properties. For example, where this failed previously:

```
josh@onix:~/dev/flatiron/commandful$ node examples/simple.js creature create
info: executing command: creature create
info: prompting user for data
info: define your new creature
prompt: id: josh
prompt: type: (dragon) human
prompt: description: Some dude
prompt: life: (10) 75
error: Invalid input for life
```

it now works:

```
josh@onix:~/dev/flatiron/commandful$ node examples/simple.js creature create
info: executing command: creature create
info: prompting user for data
info: define your new creature
prompt: id: josh
prompt: type: (dragon) human
prompt: description: Some dude
prompt: life: (10) 75
info: about to create creature
info: id : josh
info: type : human
info: description : Some dude
info: life : 75
info: {"id":"josh","type":"human","description":"Some dude","life":75,"resource":"Creature","_rev":"1-db08506cc5e981cc71873fd35a1851a5"}

```