Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-09

TCustomApplication.CheckOptions

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Either I spotted a bug, or I don't understand the algorithm.

TCustomApplication.CheckOptions should check for a command line like this:
program -B file

Where -B is a short option without parameter.
CheckOptions always treats the parameter after a short option as parameter, no matter if B comes with the colon or not.

If this is a bug:
See lazarus/ide/lazbuild.lpr for a possible fix.

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 10 lines
Either I spotted a bug, or I don't understand the algorithm. TCustomApplication.CheckOptions should check for a command line like this: program -B file Where -B is a short option without parameter. CheckOptions always treats the parameter after a short option as parameter, no matter if B comes with the colon or not.

You spotted a bug.

Michael.

Reply by email