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

How to array #24

Closed
hipstersmoothie opened this issue Jun 4, 2018 · 4 comments
Closed

How to array #24

hipstersmoothie opened this issue Jun 4, 2018 · 4 comments
Labels

Comments

@hipstersmoothie
Copy link

There are no examples on how to supply an array. Have tried a bunch of different ways.

command --array ["/","/about"]                    
@egoist
Copy link
Collaborator

egoist commented Jun 5, 2018

--array / --array /about

@hipstersmoothie
Copy link
Author

It worked! I feel this should be added to docs as it is not obvious that this is the behavior. Also:

command --array /

Throws and error that array is not array

But if I do two array args everything works:

command --array / --array /about

So it seems you cannot pass an array with one element to the CLI.

@egoist
Copy link
Collaborator

egoist commented Jun 6, 2018

maybe we should allow using type: 'array' to convert it to an array if it's just a single item.

@egoist
Copy link
Collaborator

egoist commented Dec 10, 2018

🎉 This issue has been resolved in version 6.3.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

2 participants