[fpc-pascal]getopt

Michael Van Canneyt michael.vancanneyt at wisa.be
Thu Feb 21 11:46:28 CET 2002


On Wed, 20 Feb 2002, Shifted Soul wrote:

> Hello
> I want to use options via the getopt unit but it was not found in the
> units (fpc 1.0.4 win32/go32v2/linux).
> The solution was to create a getopt like unit.
> I finished it with some changes :
> - The options are handled from a class (TParams)
> - An automatic error handling is present (duplicated, unknown ...
> parameters).
> - Easy to implement, with only one constructor, to specify the possible
> parameters
> and to test their presence.
> and some others.

You can send it to me, I'll see if I can enhance the existing getopts
units (note the S at the end !). Probably it'll go in the FCL then.

Michael.





More information about the fpc-pascal mailing list