The solution that you propose I see that have some issues. Typography it's not the correct one
One typography seems courier. When you replace pre by p then it's not courier.
In addition if you replace pre by p then if you write "--list" the result is "-list"
So if you write commands or code... this solution is not suitable.