Invalid option at position 1 lazarus / 62-General ---------------------------------------------------------------------- totya · 2015-05-13 20:39 Hi! CheckOptions doesn't work for me too, see: https://www.mail-archive.com/lazarus@miraclec.com/msg19142.html Latest stable Lazarus (1.2.6) and fpc (2.6.4) Thanks! ---------------------------------------------------------------------- jc99 · 2015-06-25 23:15 Your Start-parameter is wrong. -h is the short version --help is for long version. this is because you can set multiple options with the '-' like -hmg you set option h, m and g therefore long parameters have the prefix '--' ---------------------------------------------------------------------- jc99 · 2015-06-25 23:22 PS: If you want to set option h,e,l and p the checkoption-line has to look like this: Code: [Select]  ErrorMsg:=CheckOptions('ehlp',['help','edit','language','push']);  then '-help' works, but it sets all the options mentioned above. ---------------------------------------------------------------------- totya · 2015-12-12 00:04 Quote from: jc99 on June 26, 2015, 01:15:52 amYour Start-parameter is wrong. -h is the short version --help is for long version. this is because you can set multiple options with the '-' like -hmg you set option h, m and g therefore long parameters have the prefix '--' Hi! Thanks for the answer!