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

    <tr>
        <th>Summary</th>
        <td>
            [clang] Inconsistent unknown 'did you mean' argument reports
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          RKSimon
      </td>
    </tr>
</table>

<pre>
    If I incorrectly type `clang -fsanitze=undefined` then I get the very useful error message:
```
clang++: error: unknown argument '-fsanitze=undefined'; did you mean '-fsanitize=undefined'?
```

But if the typo is in the second part of the argument `-fsanitize=undefind` then I get the less useful error message:
```
clang++: error: unsupported argument 'undefind' to option '-fsanitize='
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysks-u2ywQxZ8Gb0Y3wmDHvgsvEkWWom_39QmwGTu0GCwGbuU-fYWT3j9qlpWQDdIwZ86Po4jM7BA7Vp9ZfSlUijcfuv__-2YW74rB6627TnAF40YfAo7RbhC3FYEd-WiVm-FlIuVM_IVMXpLTOBmHmh05xBs6uMKMMW_hDcMGiXBKFjAEH2BBIjUjkyfGL4yf2JE_1n7c2zNxzkue7nfyJrkfzv90oMKcFnQRmGieDyEaJs-gjYbNJ1hQuU-15klx_3SQ-_ecIphptxK31YMhMG4_Eo7eaVhViODvFR-zHfkzvWeALBL9I0CU1tWHiPoLpHdt0UD04Ndo_N9EMoivaoXupH6Vr6rArmx4U_GmLtvi1pXDVEqpqleUQyVE245CTVzzScipRikL0wkuKi54W9Z1WbeHtqpqgQr1wAdely2rOC7K2IO1b8vBh7kwRAm7tixrWVg1oKU9m0I83Ioc09Dl-pchzcQqbg1F-ugQTbR7oO836gtc3egdGYoZxJ_4MNF8TkaG8g4rYMZHRQq2u8W4Un4C0TPRzybe0nAY_cJEnyUfv5c1-O84Rib63QEx0e8mfgcAAP__pnESpQ">