logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

VistaIOReportUsage, VistaIOReportValidOptions - report valid command line arguments

Arguments

program   Specifies the program's name. Usually argv[0] is passed.

       noptions  Specifies the number of entries in the table of option descriptors.

       options   Specifies the location of the table of option descriptors.

       other_args
                 May  specify  a string describing any options the program accepts other than those described in
                 the options table, or it may be NULL

Author

       Art Pope <pope@cs.ubc.ca>

       Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>

VistaIO Version 1.2.14                            24 April 1993                            VistaIOReportUsage(3)

Description

VistaIOReportUsage prints, to the standard error stream, information about how to use a program. It first
       prints a line of the form:

              Usage:program<options>other_args,where<options>includes:

       The program argument supplies the program component of this line, and the  other_args  argument  supplies
       the  other_args  component.  If  the program accepts no options other than those described in the options
       table, other_args should be NULL.

       VistaIOReportUsage then calls VistaIOReportValidOptions to print a summary of the  options  described  by
       noptions and options.

       VistaIOReportValidOptions  prints  a  description  of  each  option in a table of option descriptors. The
       description is intended to advise a program  user.   It  indicates  what  keyword  signals  the  option's
       presence  in  the  command  line, whether it is optional, how many values must follow it, what type those
       values should have, what keywords may be used as values for the option, and  what  default  value(s)  the
       option  has.  The description will also include any ``blurb'' string of help information that is found in
       the option's table entry. The information is printed to the standard error stream.

Name

       VistaIOReportUsage, VistaIOReportValidOptions - report valid command line arguments

See Also

VistaIOParseCommand(3), VistaIOReportBadArgs(3), VistaIOoption(3),

Synopsis

#include<vistaio.h>voidVistaIOReportUsage(program,noptions,options,other_args)VistaIOStringConstprogram,other_args;intnoptions;VistaIOOptionDescRecoptions[noptions];voidVistaIOReportValidOptions(noptions,options)intnoptions;VistaIOOptionDescRecoptions[noptions];

See Also