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
Since Click changed its parameter-handling precedence to invocation order rather than declaration order, I've had to apply hideous hacks to force declaration-order precedence. To be clear, I have absolutely no use for invocation-order precedence, and I need completely fine-grained control over parameter precedence (I have a couple dozen options to one of my CLI commands, with tricky dependencies). I'll have to fork Click to work around this if there's no supported way to force declaration-order precedence.
The text was updated successfully, but these errors were encountered:
Same here, little use case: my script need to have db host in option and dbname, objects name are given as parameters, the callback to validate the objects name needs to know the db host and the dbname, dbname is prompted if not given. If I run it without args, the parameters validator is run before the dbname one, if I put the dbname as eager, then, it is run even if I only want the help.
So it could be great if you can say, my first arg is always that, the second one is that, and so on. (maybe there could be a way to give some dependencies in callbacks, to say, do this one before that one...)
Since Click changed its parameter-handling precedence to invocation order rather than declaration order, I've had to apply hideous hacks to force declaration-order precedence. To be clear, I have absolutely no use for invocation-order precedence, and I need completely fine-grained control over parameter precedence (I have a couple dozen options to one of my CLI commands, with tricky dependencies). I'll have to fork Click to work around this if there's no supported way to force declaration-order precedence.
The text was updated successfully, but these errors were encountered: