-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Possible bug: --no-emoji doesn't work in any argument order #7439
Comments
Your problem is there isn't a Presumably Commander's failing to parse the incorrect flag and everything else your passing in is being ignored (or at least not being treated as you'd expect), which is why it's only working for |
Actually, scratch what I said about emojis coming through, you can likely omit |
Happening to me on Debian Bullseye (Yarn v1.22.10, Commander.js v6.2.1, Node.js v12.22.5) |
I installed node-commander from debian-buster (Commander.js v2.12.2) and Yarn worked fine. Also, on ArchLinux it runs fine (package is the yarn 1.22.17 tarball) and I think it uses Commander.js v2.16.0 ( Line 1913 in 2d73345
|
Do you want to request a feature or report a bug?
It's a minor bug.
What is the current behavior?
I'm currently using a terminal that doesn't have emoji support, so to prevent a crash while using Yarn I use the
--no-emoji
flag, so I decided to add the aliasyarn='yarn --no-emoji'
but noticed a strange behavior.The problem is that
--no-emoji
messes with the command I want to run. For example, forgetting any aliases, if I tryyarn --no-emoji start
, Yarn fails to detect what I wanted to do, but when I tryyarn start --no-emoji
it works as it's supposed to.If the current behavior is a bug, please provide the steps to reproduce.
yarn --no-emoji start
start
commandyarn start --no-emoji
start
commandWhat is the expected behavior?
The flag
--no-emoji
should work in any argument order it's placed on.Please mention your node.js, yarn and operating system version.
Node v11.14.0
Yarn v1.17.3
Arch Linux
The text was updated successfully, but these errors were encountered: