Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

popt/popthelp.c File Reference

More...

#include "system.h"
#include "poptint.h"

Go to the source code of this file.

Functions

void displayArgs (poptContext con, enum poptCallbackReason foo, struct poptOption *key, const char *arg, void *data)
const char* const getTableTranslationDomain (const struct poptOption *table)
const char* const getArgDescrip (const struct poptOption *opt, const char *translation_domain)
void singleOptionHelp (FILE *f, int maxLeftCol, const struct poptOption *opt, const char *translation_domain)
int maxArgWidth (const struct poptOption *opt, const char *translation_domain)
void singleTableHelp (FILE *f, const struct poptOption *table, int left, const char *translation_domain)
int showHelpIntro (poptContext con, FILE *f)
void poptPrintHelp (poptContext con, FILE *f, int flags)
int singleOptionUsage (FILE *f, int cursor, const struct poptOption *opt, const char *translation_domain)
int singleTableUsage (FILE *f, int cursor, const struct poptOption *opt, const char *translation_domain)
int showShortOptions (const struct poptOption *opt, FILE *f, char *str)
void poptPrintUsage (poptContext con, FILE *f, int flags)
void poptSetOtherOptionHelp (poptContext con, const char *text)

Variables

struct poptOption poptHelpOptions []


Detailed Description

Definition in file popthelp.c.


Function Documentation

void displayArgs ( poptContext con,
enum poptCallbackReason foo,
struct poptOption * key,
const char * arg,
void * data ) [static]
 

Definition at line 14 of file popthelp.c.

const char* const getArgDescrip ( const struct poptOption * opt,
const char * translation_domain ) [static]
 

Definition at line 50 of file popthelp.c.

Referenced by maxArgWidth(), singleOptionHelp(), and singleOptionUsage().

const char* const getTableTranslationDomain ( const struct poptOption * table ) [static]
 

Definition at line 35 of file popthelp.c.

Referenced by singleTableHelp().

int maxArgWidth ( const struct poptOption * opt,
const char * translation_domain ) [static]
 

Definition at line 175 of file popthelp.c.

Referenced by poptPrintHelp().

int showHelpIntro ( poptContext con,
FILE * f ) [static]
 

Definition at line 236 of file popthelp.c.

Referenced by poptPrintHelp(), and poptPrintUsage().

int showShortOptions ( const struct poptOption * opt,
FILE * f,
char * str ) [static]
 

Definition at line 321 of file popthelp.c.

Referenced by poptPrintUsage().

void singleOptionHelp ( FILE * f,
int maxLeftCol,
const struct poptOption * opt,
const char * translation_domain ) [static]
 

Definition at line 71 of file popthelp.c.

Referenced by singleTableHelp().

int singleOptionUsage ( FILE * f,
int cursor,
const struct poptOption * opt,
const char * translation_domain ) [static]
 

Definition at line 266 of file popthelp.c.

Referenced by singleTableUsage().

void singleTableHelp ( FILE * f,
const struct poptOption * table,
int left,
const char * translation_domain ) [static]
 

Definition at line 209 of file popthelp.c.

Referenced by poptPrintHelp().

int singleTableUsage ( FILE * f,
int cursor,
const struct poptOption * opt,
const char * translation_domain ) [static]
 

Definition at line 305 of file popthelp.c.

Referenced by poptPrintUsage().


Variable Documentation

struct poptOption poptHelpOptions[]
 

Initial value:

 {
    { NULL, '\0', POPT_ARG_CALLBACK, (void *)&displayArgs, '\0', NULL, NULL },
    { "help", '?', 0, NULL, '?',  "Show this help message" , NULL },
    { "usage", '\0', 0, NULL, 'u',  "Display brief usage message" , NULL },
    POPT_TABLEEND
} 

Definition at line 26 of file popthelp.c.


Generated at Mon May 21 08:53:42 2001 for rpm by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001