You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will result in pip -r requirements.txt install, which doesn't work. The flag is for the install sub command.
I think we need to plan a slight re-design of the command interface.. In the meantime, would it be helpful to change the default order, so that flags always come after args? Realistically that's the only fix we can get into 0.2.0-beta.1
I agree. And we can also change the meaning of the convenience (from root command flags to subcommand flags) but it's probably the last time we can. In your opinion should we change the convenience to subcommand flags, or keep it at root flags?
Activity
helderco commentedon Feb 19, 2022
As suggested by @shykes, if we make
nameoptional, you can just use:helderco commentedon Mar 9, 2022
Here's an example:
This will result in
pip -r requirements.txt install, which doesn't work. The flag is for theinstallsub command.shykes commentedon Mar 9, 2022
I think we need to plan a slight re-design of the command interface.. In the meantime, would it be helpful to change the default order, so that flags always come after args? Realistically that's the only fix we can get into 0.2.0-beta.1
helderco commentedon Mar 9, 2022
Some commands have global flags and sub-command flags, that come before and after some positional arguments.
So I'd just revert to using
argsif more control is needed, and keepflagsas is for the particular convenience it serves.shykes commentedon Mar 9, 2022
I agree. And we can also change the meaning of the convenience (from root command flags to subcommand flags) but it's probably the last time we can. In your opinion should we change the convenience to subcommand flags, or keep it at root flags?
helderco commentedon Mar 9, 2022
I'm leaning towards keeping them as is because it seems the most common case and so the most useful.
shykes commentedon Mar 9, 2022
Works for me.
helderco commentedon Mar 9, 2022
Still, would rather do:
I want to send a PR for making
nameoptional, we've just had other priorities so far. 🙂helderco commentedon Dec 22, 2022
Closing since the 0.2 CUE API is frozen, in favor of the GraphQL API.