-
Notifications
You must be signed in to change notification settings - Fork 373
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
FR: add config for default options #1509
Comments
Mercurial has this feature, and I remember they deprecated it, but I couldn't remember why. After some quick digging, I found https://lists.mercurial-scm.org/pipermail/mercurial-devel/2009-October/016095.html. For reference, the arguments there are:
The last two points also apply to more specific config options, like So I'm not sure if we want to add this feature, but I'm also not sure that shouldn't. |
If a real project had cause to deprecate it, then I will listen to that wisdom. It was probably painfully learned. |
@martinvonz summarized the issues correctly. It might be less of an issue iff you could convince people to use a proper API to interact with Git has tried to deal with this by having commands be "plumbing" and "porcelain" and then insisting that you only write scripts with the former. In practice...nobody listens until they get burned, and then the horse is already out of the barn and in the next county. Hyrum's Law always finds you. |
I would like to be able to set default arguments that apply to commands if no other arguments are provided. I know that something similar can be accomplished with aliases, but I like being able to use commands like
jj log
with some customization.I tried to implement it in
fowles@c4c8040
but I got lost trying to work with the clap module. If you would be receptive to this feature and can point me in the right direction, I can try to finish a PR, but if you don't like it I would rather learn that then continue spelunking through clap docs.
The text was updated successfully, but these errors were encountered: