[next] [prev] [prev-tail] [tail] [up]

## Chapter 5
The GETOPTS unit.

This document describes the GETOPTS unit for Free Pascal. It was written for L I N U X by Michaël Van Canneyt. It now also works for all supported platforms.

The getopts unit provides a mechanism to handle command-line options in a structured way, much like the GNU getopts mechanism. It allows you to define the valid options for you program, and the unit will then parse the command-line options for you, and inform you of any errors.

The chapter is divided in 2 sections:

- The first section lists types, constants and variables from the interface part of the unit.
- The second section describes the functions defined in the unit.

5.1 Types, Constants and variables :
Constants
Types
Variables
5.2 Procedures and functions
GetLongOpts
Getopt

[next] [prev] [prev-tail] [front] [up]