Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Including description and type: 'number' causes invalid input #64

Closed
calvinfo opened this Issue · 4 comments

5 participants

@calvinfo

Including both a type:'number' and description key seems to break the input.

var fields = {
  price : {
    description : 'Price',
    default : 10,
    type : 'number'
  }
};

prompt.get({ properties : fields }, function (err, result) { 
  // other stuff...
 });

Output:

prompt: Price:  (10) 
error:   Invalid input for Price
prompt: Price:  (10) 1
error:   Invalid input for Price

Using message instead fixes the problem, but doesn't give you a nice name in the input.

@makotot

+1

@PierrickP

+1 ?

@vhpoet

#75 Here's the fix pull request.

@jcrugzz jcrugzz closed this in 36a6075
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.