#include "system.h"
#include "poptint.h"
Go to the source code of this file.
Functions | |
static void | displayArgs (poptContext con, enum poptCallbackReason foo, struct poptOption *key, const char *arg, void *data) |
static const char *const | getTableTranslationDomain (const struct poptOption *table) |
static const char *const | getArgDescrip (const struct poptOption *opt, const char *translation_domain) |
static char * | singleOptionDefaultValue (int lineLength, const struct poptOption *opt, const char *translation_domain) |
static void | singleOptionHelp (FILE *fp, int maxLeftCol, const struct poptOption *opt, const char *translation_domain) |
static int | maxArgWidth (const struct poptOption *opt, const char *translation_domain) |
static void | itemHelp (FILE *fp, poptItem items, int nitems, int left, const char *translation_domain) |
Display popt alias and exec help. | |
static void | singleTableHelp (poptContext con, FILE *fp, const struct poptOption *table, int left, const char *translation_domain) |
static int | showHelpIntro (poptContext con, FILE *fp) |
void | poptPrintHelp (poptContext con, FILE *fp, int flags) |
Print detailed description of options. | |
static int | singleOptionUsage (FILE *fp, int cursor, const struct poptOption *opt, const char *translation_domain) |
static int | itemUsage (FILE *fp, int cursor, poptItem item, int nitems, const char *translation_domain) |
Display popt alias and exec usage. | |
static int | singleTableUsage (poptContext con, FILE *fp, int cursor, const struct poptOption *opt, const char *translation_domain) |
static int | showShortOptions (const struct poptOption *opt, FILE *fp, char *str) |
Return concatenated short options for display. | |
void | poptPrintUsage (poptContext con, FILE *fp, int flags) |
Print terse description of options. | |
void | poptSetOtherOptionHelp (poptContext con, const char *text) |
Provide text to replace default "[OPTION...]" in help/usage output. | |
Variables | |
struct poptOption | poptAliasOptions [] |
Empty table marker to enable displaying popt alias/exec options. | |
struct poptOption | poptHelpOptions [] |
Auto help table options. |
Definition in file popthelp.c.
static void displayArgs | ( | poptContext | con, | |
enum poptCallbackReason | foo, | |||
struct poptOption * | key, | |||
const char * | arg, | |||
void * | data | |||
) | [static] |
con | context | |
key | option(s) |
Definition at line 19 of file popthelp.c.
static const char* const getArgDescrip | ( | const struct poptOption * | opt, | |
const char * | translation_domain | |||
) | [static] |
opt | option(s) | |
translation_domain | translation domain |
Definition at line 85 of file popthelp.c.
static const char* const getTableTranslationDomain | ( | const struct poptOption * | table | ) | [static] |
table | option(s) |
Definition at line 67 of file popthelp.c.
static void itemHelp | ( | FILE * | fp, | |
poptItem | items, | |||
int | nitems, | |||
int | left, | |||
const char * | translation_domain | |||
) | [static] |
Display popt alias and exec help.
fp | output file handle | |
items | alias/exec array | |
nitems | no. of alias/exec entries | |
translation_domain | translation domain |
Definition at line 387 of file popthelp.c.
static int itemUsage | ( | FILE * | fp, | |
int | cursor, | |||
poptItem | item, | |||
int | nitems, | |||
const char * | translation_domain | |||
) | [static] |
Display popt alias and exec usage.
fp | output file handle | |
item | alias/exec array | |
nitems | no. of ara/exec entries | |
translation_domain | translation domain |
Definition at line 540 of file popthelp.c.
static int maxArgWidth | ( | const struct poptOption * | opt, | |
const char * | translation_domain | |||
) | [static] |
opt | option(s) | |
translation_domain | translation domain |
Definition at line 343 of file popthelp.c.
static int showHelpIntro | ( | poptContext | con, | |
FILE * | fp | |||
) | [static] |
con | context | |
fp | output file handle |
Definition at line 452 of file popthelp.c.
static int showShortOptions | ( | const struct poptOption * | opt, | |
FILE * | fp, | |||
char * | str | |||
) | [static] |
Return concatenated short options for display.
opt | option(s) | |
fp | output file handle |
str | concatenation of short options |
Definition at line 601 of file popthelp.c.
static char* singleOptionDefaultValue | ( | int | lineLength, | |
const struct poptOption * | opt, | |||
const char * | translation_domain | |||
) | [static] |
opt | option(s) | |
translation_domain | translation domain |
Definition at line 115 of file popthelp.c.
static void singleOptionHelp | ( | FILE * | fp, | |
int | maxLeftCol, | |||
const struct poptOption * | opt, | |||
const char * | translation_domain | |||
) | [static] |
fp | output file handle | |
opt | option(s) | |
translation_domain | translation domain |
Definition at line 182 of file popthelp.c.
static int singleOptionUsage | ( | FILE * | fp, | |
int | cursor, | |||
const struct poptOption * | opt, | |||
const char * | translation_domain | |||
) | [static] |
fp | output file handle | |
opt | option(s) | |
translation_domain | translation domain |
Definition at line 492 of file popthelp.c.
static void singleTableHelp | ( | poptContext | con, | |
FILE * | fp, | |||
const struct poptOption * | table, | |||
int | left, | |||
const char * | translation_domain | |||
) | [static] |
fp | output file handle | |
table | option(s) | |
translation_domain | translation domain |
Definition at line 411 of file popthelp.c.
static int singleTableUsage | ( | poptContext | con, | |
FILE * | fp, | |||
int | cursor, | |||
const struct poptOption * | opt, | |||
const char * | translation_domain | |||
) | [static] |
fp | output file handle | |
opt | option(s) | |
translation_domain | translation domain |
Definition at line 569 of file popthelp.c.
struct poptOption poptAliasOptions[] |
{ POPT_TABLEEND }
Empty table marker to enable displaying popt alias/exec options.
Definition at line 42 of file popthelp.c.
struct poptOption poptHelpOptions[] |
{ { NULL, '\0', POPT_ARG_CALLBACK, (void *)&displayArgs, '\0', NULL, NULL }, { "help", '?', 0, NULL, '?', N_("Show this help message"), NULL }, { "usage", '\0', 0, NULL, 'u', N_("Display brief usage message"), NULL }, POPT_TABLEEND }
Auto help table options.
Definition at line 51 of file popthelp.c.