<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Dear maintainer,<br></div><div><br></div><div>I experience a similar issue with yarn and the commander version: command options are ignored.<br></div><div>For example: `yarn add -D typescript` saves the dependency to dependencies instead of devDependencies. The -D is simply ignored.<br></div><div><br></div><div>I've found that you have a patch for commander >= 8 where you replace most occurrences of commander by commanderOpts. It's missing the same replacement on line 306:<br></div><div><br></div><div>--- a/src/cli/index.js<br></div><div>+++ b/src/cli/index.js<br></div><div>@@ -303,7 +303,7 @@ export async function main({<br></div><div>       reporter.warn(reporter.lang('dashDashDeprecation'));<br></div><div>     }<br></div><div> <br></div><div>-    return command.run(config, reporter, commander, commander.args).then(exitCode => {<br></div><div>+    return command.run(config, reporter, commanderOpts, commander.args).then(exitCode => {<br></div><div>       if (shouldWrapOutput) {<br></div><div>         reporter.footer(false);<br></div><div>       }<br></div><div><br></div><div>This fixes my issue but I can't tell whether it also fixes the original reporter's issue.<br></div><div><br></div><div>Best regards<br></div><div>Adrien<br></div></body></html>