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

    <tr>
        <th>Summary</th>
        <td>
            clang-format-diff.py --help always references clang-format-diff.py even when aliased
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          serge-sans-paille
      </td>
    </tr>
</table>

<pre>
    reproducer:

```sh
$ clang-format-diff.py --help | head -n 10 | tail -n2
  git diff -U0 --no-color --relative HEAD^ | clang-format-diff.py -p1 -i
  svn diff --diff-cmd=diff -x-U0 | clang-format-diff.py -i
```

everything looks fine, the help references `clang-format-diff.py`. But if we create an alias

```sh
$ ln -s `which clang-format-diff.py` cfd
$ PATH=$PWD:$PATH cfd  --help | head -n 10 | tail -n2
  git diff -U0 --no-color --relative HEAD^ | clang-format-diff.py -p1 -i
  svn diff --diff-cmd=diff -x-U0 | clang-format-diff.py -i
```
we still get a reference to the aliased command, which doesn't help, e.g. when copy-pasting. This happens under Fedora where `clang-format-diff.py` is just renamed into `clang-format-diff`

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzclM9u4zgMxp9GvhAyJPlPkoMPbdOgxx662LMi0Za6smRIcrJ5-4GddFoMMp37AIYNE-RHffzZlCnZwSN2pHkkzb6QczYhdgnjgDRJn-gkrXNYHIO-dBGnGPSsMJLqgbA9YR_3ll2vZG4BUYNy0g-0D3GUmWrb9-V0AUoNugnI5gkMSg3UA2fra5bWAfXiKgAw2AxLFdB_GFDqA1XBhQiURnQy2xPCy_PDnjTPa_n9bhMHaj8U08nfFNcEqkZNqv018v_S5fc69hefX83jCeMlG-sHcCH8l6C3Hol4gmwQVrcRe4zoFSYgLbvXgbSshMc5g-3hjKAiyowgPUhnZfrjqJ0HumqfjVXmrgfSMlC9_qx5fXh7IdWeiPr13_3CU9RLaEmCvwvTGSFl6xwMmEF-0oAcVkbrjFGDCuMovV7QXeeoAyZPxCavGJc4lkMJZ4MeVJgudJIpWz-U8GZsAiOnCX2C2WuMcEAdolySI36DHWyC9zlliOjliBqsz-Fu_k8_he4qvat2ssCObxjn7Y7tWGG6RjR6WzGh-lZVrNc7vtm1YtMe2bHmXNeF7QQTFediy1mz5azkcit4JZhisqoE60nNcJTWlc6dxjLEobApzdhtqrZqCieP6NK6K4T4ej4ixLI9YreU0eM8JFIzZ1NOn0LZZofdd0tBurO8pK9_y91sPKG_MriBK-boOpPzlNbP-EDEYbDZzMdShZGIw3KE24NOMbyjykQcVmOJiMPq7UcAAAD__7TRkPA">