<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57859>57859</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lld ignores other arguments when `-V` is passed
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          luke-jr
      </td>
    </tr>
</table>

<pre>
    `lld -V <anything>` results in the expected behaviour of `-V` with everything else ignored, exiting with 0.

It appears GNU ld will run `-V` and then proceed as normal with the rest of the command line. cmake appears to (sometimes?) rely on this behaviour presently ([cmake issue 23969](https://gitlab.kitware.com/cmake/cmake/-/issues/23969)).

I'm not sure if lld wants to imitate ld's behaviour or this is a works-as-intended.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxlUsGSmzAM_Rpz0cCACSQcOGx3u51eeuveBSjBG2MztgnN31eGdjedzhjssaSn9_Tc2eHeijrXeoD0DUT5jOYeRmUuovzK9-DILzp4UAbCSEC_ZuoDDdDRiDdlFwf2DJyYvsXsVYUR6EZuxwDSnkBdjHU0CPnM5SrE-y0vz0T-IvKn_f89AM4zofPw7cdPYD6r0hrcYj7h0QyRhYHZ2Z6YBXpg7An1jhgZMuEQOcVzb6cp1mhlKIN-wit9NAkWhDx5O1FQE3lRvgrZcLW-g41alX_QODMqmcAxrhHVlx1Keb8QyLKpG1G9cGQMYWakJyEZ7PWigsYuu6qwoqOMyfDlVvmwp_xtOJ4PO5SM69_ZCHmcWGkAvzjue4bo14ombDrUpAIG4plx3iNt63YhvBBW664-RZ8qE8gMNGQJtUVdl8eiOB6KZGjLoSkbTALzpjZ22J3zYHmYDtBdlolizzV68OEKo8_oPQ3J4nT73wzGpfujXevb3y1lB9_5JT2qr46nqknGtu7ruqu6oj7jgQnVfV91_SCRSB6bQ4UJT5UfVss-CCkNrbsRfGYXEtXKXMq84X9xOOZFVpzysq-KCrFuivxcikNOEyqdRR6ZdZfEtRulbrl4Dmrlg_8MsjIeA9HWjvFxCaPliuVK6btLttbtRv03RboR2g">