-
Notifications
You must be signed in to change notification settings - Fork 995
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
access argv/command from coerce #1266
Comments
i am also noticing that |
Hi @brewster1134, middleware gets passed a reference to argv. Perhaps that’s an option? |
@brewster1134 your contrived example is exactly what I'm attempting to do. 😄 It mostly works as the option is set and available later in the command's handlers.
It looks like yargs runs However, I'm also noticing lots of excess coercion attempts where its value gets set a second time (with multiple additional runs) when it's used alongside a positional arg... Still trying to sort that out, though... |
This problem seemed to have been because I was using |
i have a global option defined that all commands share, and need to use
coerce
for some additional manipulation. the issue is i need to access the argv object, or at least the command called, however only the option is passed in. this is likely a feature request, but maybe there is another way to accomplish what i am trying to do. here is a contrived example...The text was updated successfully, but these errors were encountered: