-
Notifications
You must be signed in to change notification settings - Fork 52
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
[BUG]: Copyfiles Incorrectly Assigns Up #44
Comments
I'd also note that the recent release of yargs@12.0 may help solve this issue:
|
what we're actually doing is seeing if the script was called as |
just pushed something up, see if that fixes it for you |
That works great, thank you! I missed that additional logic and get what you are trying to provide. |
Steps to Reproduce:
The issue is that the script is being run in a folder with a literal
-up
in the pathThe root of the issue the following block of code:
This looks like it is trying to assign / detect a default value if
-u
is ever specified without a value, the problem is it isn't. First of all it is incomplete code, it only works with-up
and not-u
. Second theargs.argv.$0
will never contain accurate runtime args, it will only contain the folder.This code creates a really nasty bug. I know
yargs
doesn't make it easy to support this functionality, the code above should be removed.The text was updated successfully, but these errors were encountered: