Whenever I run yarn, I get a warning that this gem has been deprecated and that I should switch to optimist as soon as possible:
$ yarn
[DEPRECATION] This gem has been renamed to optimist and will no longer be supported. Please switch to optimist as soon as possible.
Because of this, I ran gem install optimist to install optimist, but I have no idea how to use it. If I simply try to run the command optimist, it doesn't do anything:
$ optimist
Command 'optimist' not found, did you mean:
How do I use optimist? Specifically, how do I use it to replace yarn, since it will no longer be supported in the future?