Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting 'warning' or 'validator' removes the 'description' #167

Open
ebbmo opened this issue Nov 24, 2016 · 1 comment
Open

Setting 'warning' or 'validator' removes the 'description' #167

ebbmo opened this issue Nov 24, 2016 · 1 comment

Comments

@ebbmo
Copy link

ebbmo commented Nov 24, 2016

Hi,

Up front: AWESOME package! Cheers mate :)

On to my issue. When I set a prompt with the following properties:

name: 'script',
description: 'Pick script',
type: 'integer',
required: true,

I get the prompt as expected:
prompt: Pick script:

But when I add the warning or validation property, the description is replaced with the name again:

name: 'script',
description: 'Pick script',
type: 'integer',
required: true,
warning: 'Only numbers from 1 to 3...',

turns into:
prompt: script:

The same applies, if I use validation in the properties with or instead of the validation.

Is this intended? I couldn't find a documentation on this, besides using the 'array' type - but in my case i'm prompting for an integer.

Any idea?

KR, ebb

@bmikaeli
Copy link

Same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants