Replies: 2 comments
-
|
1000000000%. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
🙏🏼 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
I'd like to be able to specify global defaults for the cli.
Describe the solution you'd like
Options like
--cache-dirare best configured globally instead of always setting them in each command that is run. In general, I think it would be good to read these configuration options (with increasing priority):Personally, I've adopted this pattern for literally every option in the cli tools that I maintain. There's always a weird edge case where in some environment you want to override one of the options conveniently via a environment variable (e.g. in CI) for instance.
Describe alternatives you've considered
The CLI options are currently very strictly parsed with positional arguments first and options second only. E.g. this is valid:
but this isn't:
This means that currently it's also not possible to e.g. specify a common base command like
Beta Was this translation helpful? Give feedback.
All reactions