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

    <tr>
        <th>Summary</th>
        <td>
            [mlir][opt] inconsistent command line behavior
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir
      </td>
    </tr>

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

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

<pre>
    Somehow the command line behavior is very inconsistent for `mlir-opt` and customized `opt`.

At my repo(https://github.com/SchrodingerZhu/reuse-ir), I build both `lean-opt` and `mlir-lean-plugin.so`. Pretty much following the same way of `Standalone`.

- If I use `lean-opt`, it recognizes ` --test-type-tag-analysis` but `--inline` or `-inline` will gives you `lean-opt: Unknown command line argument '-inline'.`
- If I use `mlir-lean-plugin.so` with `mlir-opt`, it loads the dialect and adds the pass (`--test-type-tag-analysis` will appear in `--help`), but it insists that `mlir-opt: Unknown command line argument '--test-type-tag-analysis'`.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU01vszgQ_jXmMiJyhhDCgUO6UaTeVqr2sjcDE5hdYyN_JKK__pVJqzZV--q9gDRjzzwffpT3PBiiRpRPojxlKobRuualG53t2Qzk_h1j1tp-aV7sRKO9QRgJOjtNyvSg2RC0NKorWwfs4UpuATadNZ59IBPgYh2IvZw0u9zOQewlpJtd9MFO_Ep96t4bGyFPQh7v32OAaQFHsxV4GEOYvSiOAs8CzwOHMbabzk4Cz49QBZ4dRU85O4G1wL_gGdrIuofWhjGt0qTMZyDv2Nb6rOPAZuNtQgN_OwphgSl2I1ys1vbGZlj5ezUR3NQC9pIGvARleqWtoa8scni-wDNET192J2gcwFFnB8Ov5FMf8jyQD3lYZsqDGnJllF48-9RrY0hn8pxNkj2V7tJ-KtxYaxj4Sh4WGx9WFkf4x_xv7M08uqfcEKdklMDqfRJWmwTxGwbfSwU3vov7yeU3gtqq3q-a9aw0dWEVXfVvxVl5DwIPK7Gfua-81DyTcsDmLsNIel73rDYndTgAr-8uzVbhAdAf0f8JAVYfvmZ9U_R1UauMmm0lyy2WZVFnY9MWOyxKbGtEJctuv6daFXvcVe0Fd_tDmXGDEndyuy1kWR7KeiN7lJKKrsbDrtq2KHaSJsV6o_V12lg3ZOx9pKY6SJSZVi1pvwYVMfESiCmyrknH8zYOXuykTvQ_BgQOeg33eqE8ifIpqVGeHkP6bZ6z6HTzm-SlJW-_fHb2P-qCwPMK2Qs8r6h_BQAA___rX2lk">