Request - please remove the "deprecated" status from cmdline in system unit. lazarus / 64-FPC development ---------------------------------------------------------------------- ad1mt · 2024-01-23 15:30 I have a request - please remove the "deprecated" status from the cmdline variable in the system unit. Thanks. ---------------------------------------------------------------------- marcov · 2024-01-23 15:31 Afaik cmdline is not available on all targets, so that is why it is deprecated rather than start an emulation of it. ---------------------------------------------------------------------- ad1mt · 2024-01-23 15:50 Quote from: marcov on January 23, 2024, 04:31:42 pmAfaik cmdline is not available on all targets, so that is why it is deprecated rather than start an emulation of it. Its better to have it than not have it on targets where it is available. On Windows, its the only way I can think of to reliably process commandline parameters. ---------------------------------------------------------------------- ad1mt · 2024-01-23 15:53 Quote from: marcov on January 23, 2024, 04:31:42 pm[CUT]...rather than start an emulation of it. I volunteer to code an emulation... ---------------------------------------------------------------------- PascalDragon · 2024-01-23 19:57 Quote from: ad1mt on January 23, 2024, 04:50:57 pmQuote from: marcov on January 23, 2024, 04:31:42 pmAfaik cmdline is not available on all targets, so that is why it is deprecated rather than start an emulation of it. Its better to have it than not have it on targets where it is available. On Windows, its the only way I can think of to reliably process commandline parameters. If ParamStr is not working for you then you're supposed to use the platform specific mechanisms. That's what ifdefs are for after all.