CL_USAGE - display command line usage information.

Usage:

#include <cl.h>
cl_usage(fp, optab);

Where:

FILE *fp;
refers to an output stream where you want to write out the usage information.
CL_DESCRIPTION *optab;
is an Options Table describing the possible arguments and options accepted on the command line.

Description:

The "cl_usage" function outputs usage information about a command line. The general format of this information will be:

commandname -- description
usage: commandname arg arg arg ...
options:
   +option        -- description
   -option        -- description
   =option value  -- description

and so on. The information that appears in the output is given when you construct the Options Table.

See Also:

expl c internal parser
for an overview of the parser routines.
expl c internal parser macros
for macros used in creating an Options Table.

Copyright © 1996, Thinkage Ltd.