Comments (4)
maybe we should allow using type: 'array'
to convert it to an array if it's just a single item.
from cac.
--array / --array /about
from cac.
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.
from cac.
🎉 This issue has been resolved in version 6.3.10 🎉
The release is available on:
Your semantic-release bot 📦🚀
from cac.
Related Issues (20)
- Publish the Deno version under a separate package HOT 1
- feat: allow non-array types HOT 2
- Required option not working as expected HOT 4
- could I use default command(not the global one with name '@@global@@')? HOT 1
- Remove `module.exports` in esm bundle HOT 1
- The callback function of action is not closed properly HOT 1
- CACError: Unknown option `--runInBand`
- Long hyphenated options aren't recognised as aliases
- Implement `.version()` for sub commands
- Register cac with deno registries (requires a github webhook to be added)
- How to get all options? HOT 1
- Issue using typescript with nodenext HOT 2
- Short option property does not update when using long option HOT 2
- Can't create command with alias to default command
- How not to automatically recognize parameters and enforce default behavior HOT 1
- The behavior of the "parse" function when used without arguments is strange.
- Provide an official website generated based on vitepress
- Types: export CAC class HOT 2
- [Feature Request] Tab-completion HOT 3
- Native ESM (Node 13+) Support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cac.