For programming in C, it is quite common to switch between creating debug- and release-versions by passing a command line argument to the compiler.
I would like to have something similar for
pdflatex. Optimally, there would be conditional parts within the source LaTeX file depending on some variable, and then the switching between the versions can be done by somehow setting this variable at the command-line invocation of
Is it possible to achieve something like this? What's the easiest / cleanest way?