Forum > General
Problem with command line parameters
simone:
Fixed in trunk:
https://bugs.freepascal.org/view.php?id=34879
Thanks.
WackaMold:
The answer you want is:
Short argument indicators need a space character: Program.EXE /a ArgValue
Long argument indicators need an equals sign : Program.EXE /Arg=ArgValue
Of course values with spaces need to be enclosed in double-quotes:
Short argument indicators need a space character: Program.EXE /a "Arg Val"
Long argument indicators need an equals sign : Program.EXE /Arg="Arg Val"
It works this way under Free Pascal Compiler version 3.2.2 2022/01/02 win32 i386 on Windows 8.x See the attached demo program.
Navigation
[0] Message Index
[*] Previous page