[fpc-pascal] TCustomApplication.CheckOptions

Michael Van Canneyt michael at freepascal.org
Thu Sep 7 10:42:42 CEST 2006



On Thu, 7 Sep 2006, Mattias Gaertner wrote:

>
> 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.



More information about the fpc-pascal mailing list