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
Wrong completion when executed in git-bash (Mingw) session #2348
Comments
When I saw the title I thought MinGW might be difficult, but just a path change seems possible. The path support is complicated by a shim layer to support the multiple runtime environments. The place the substitution occurs is: Lines 352 to 357 in e517318
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Asking yargs to generate the completion in a git-bash session on windows produces the following completion function:
The path to the program is returned windows style instead of unix style.
By replacing
C:\Program Files\nodejs\node_modules\my-program\bin\main
with/c/Program Files/nodejs/node_modules/my-program/bin/main
everything works correctly.I am using yargs 17.7.2
The text was updated successfully, but these errors were encountered: