Move `--ls` behind `-Z ls`

Closes #13549