Quote Originally Posted by tux
load delphi -> help -> delphi help -> (index) paramstr function
I think he wants to add the Compiler switch, not just know about the parameter.
Something like:

if paramstr(1)='debug' then {$DEFINE debug}
(obviously not working)

Btw i don't think it is possible. The compiler switches (and all compiler directives) are resolved at compile time so your executable don't know anything about it.