The arguments that I need to pass to a Verbatim environment are in a variable. I'm trying to do this:
\documentclass{article}
\usepackage{fancyvrb}
\begin{document}
\def\opts{numbers=left}
\begin{Verbatim}[\opts]
Hello, world!
\end{Verbatim}
\end{document}
Obviously, t fails:
! Package keyval Error: numbers=left undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.5 \begin{Verbatim}[\opts]
What is the right way?

\optswhere all keys are accumulated. Is it possible to do the same with the key you recommended? Can you please illustrate how exactly? – yegor256 Jan 09 '24 at 15:47