Use -- in more places that call subcommands with paths (#53484)

Thanks to Dario Weißer for the suggestion

Release Notes:

- Fixed some potential edge cases when paths in a project started
  with `-`.
b8766ef3afConrad Irwin committed on 4/10/2026, 2:38:21 AM· committed by GitHubparentf1d9aff
4 files changedLine totals unavailable