Latex dont ignore double dash

When having fontenc activated, writing:

\texttt{--path}

It will omit one -

You have to write it as:

\texttt{-{}-path}