#include "system.h"
#include "poptint.h"
Go to the source code of this file.
Data Structures | |
struct | poptDone_s |
Keep track of option tables already processed. More... | |
Typedefs | |
typedef poptDone_s * | poptDone |
Keep track of option tables already processed. | |
Functions | |
void | displayArgs (poptContext con, enum poptCallbackReason foo, struct poptOption *key, const char *arg, void *data) |
Display arguments. | |
const char *const | getTableTranslationDomain (const struct poptOption *table) |
const char *const | getArgDescrip (const struct poptOption *opt, const char *translation_domain) |
char * | singleOptionDefaultValue (int lineLength, const struct poptOption *opt, const char *translation_domain) |
Display default value for an option. | |
void | singleOptionHelp (FILE *fp, int maxLeftCol, const struct poptOption *opt, const char *translation_domain) |
Display help text for an option. | |
int | maxArgWidth (const struct poptOption *opt, const char *translation_domain) |
void | itemHelp (FILE *fp, poptItem items, int nitems, int left, const char *translation_domain) |
Display popt alias and exec help. | |
void | singleTableHelp (poptContext con, FILE *fp, const struct poptOption *table, int left, const char *translation_domain) |
Display help text for a table of options. | |
int | showHelpIntro (poptContext con, FILE *fp) |
void | poptPrintHelp (poptContext con, FILE *fp, int flags) |
int | singleOptionUsage (FILE *fp, int cursor, const struct poptOption *opt, const char *translation_domain) |
int | itemUsage (FILE *fp, int cursor, poptItem item, int nitems, const char *translation_domain) |
Display popt alias and exec usage. | |
int | singleTableUsage (poptContext con, FILE *fp, int cursor, const struct poptOption *opt, const char *translation_domain, poptDone done) |
Display usage text for a table of options. | |
int | showShortOptions (const struct poptOption *opt, FILE *fp, char *str) |
Return concatenated short options for display. | |
void | poptPrintUsage (poptContext con, FILE *fp, int flags) |
void | poptSetOtherOptionHelp (poptContext con, const char *text) |
Variables | |
poptOption | poptAliasOptions [] |
Empty table marker to enable displaying popt alias/exec options. | |
poptOption | poptHelpOptions [] |
Auto help table options. |
Definition in file popthelp.c.
|
Keep track of option tables already processed.
|
|
Display arguments.
Definition at line 23 of file popthelp.c. References poptCallbackReason, poptPrintHelp(), poptPrintUsage(), and poptOption::shortName. |
|
Definition at line 92 of file popthelp.c. References poptOption::argDescrip, poptOption::argInfo, D_, POPT_, POPT_ARG_DOUBLE, POPT_ARG_FLOAT, POPT_ARG_INT, POPT_ARG_LONG, POPT_ARG_MASK, POPT_ARG_NONE, POPT_ARG_STRING, and POPT_ARG_VAL. Referenced by maxArgWidth(), singleOptionHelp(), and singleOptionUsage(). |
|
Definition at line 74 of file popthelp.c. References poptOption::arg, poptOption::argInfo, poptOption::longName, POPT_ARG_INTL_DOMAIN, and poptOption::shortName. Referenced by singleTableHelp(). |
|
Display popt alias and exec help.
Definition at line 414 of file popthelp.c. References poptOption::argInfo, poptOption::longName, poptItem_s::option, POPT_ARGFLAG_DOC_HIDDEN, poptOption::shortName, and singleOptionHelp(). Referenced by singleTableHelp(). |
|
Display popt alias and exec usage.
Definition at line 585 of file popthelp.c. References poptOption::arg, poptOption::argInfo, poptOption::longName, poptItem_s::option, POPT_ARG_INTL_DOMAIN, POPT_ARG_MASK, POPT_ARGFLAG_DOC_HIDDEN, poptOption::shortName, and singleOptionUsage(). Referenced by poptPrintUsage(). |
|
Definition at line 369 of file popthelp.c. References poptOption::arg, poptOption::argInfo, getArgDescrip(), poptOption::longName, POPT_ARG_INCLUDE_TABLE, POPT_ARG_MASK, POPT_ARGFLAG_DOC_HIDDEN, POPT_ARGFLAG_ONEDASH, POPT_ARGFLAG_OPTIONAL, and poptOption::shortName. Referenced by poptPrintHelp(). |
|
Print detailed description of options.
Definition at line 505 of file popthelp.c. References maxArgWidth(), poptContext_s::options, poptContext_s::otherHelp, POPT_, showHelpIntro(), and singleTableHelp(). Referenced by displayArgs(), and printUsage(). |
|
Print terse description of options.
Definition at line 708 of file popthelp.c. References poptContext_s::aliases, alloca(), poptContext_s::execs, itemUsage(), poptDone_s::maxopts, poptDone_s::nopts, poptContext_s::numAliases, poptContext_s::numExecs, poptContext_s::options, poptDone_s::opts, poptContext_s::otherHelp, showHelpIntro(), showShortOptions(), and singleTableUsage(). Referenced by displayArgs(), and printUsage(). |
|
Provide text to replace default "[OPTION...]" in help/usage output.
Definition at line 736 of file popthelp.c. References _free(), poptContext_s::otherHelp, and xstrdup(). |
|
Definition at line 482 of file popthelp.c. References optionStackEntry::argv, poptContext_s::flags, poptContext_s::optionStack, POPT_, and POPT_CONTEXT_KEEP_FIRST. Referenced by poptPrintHelp(), and poptPrintUsage(). |
|
Return concatenated short options for display.
Definition at line 679 of file popthelp.c. References alloca(), poptOption::arg, poptOption::argInfo, poptOption::longName, POPT_ARG_INCLUDE_TABLE, POPT_ARG_MASK, and poptOption::shortName. Referenced by poptPrintUsage(). |
|
Display default value for an option.
Definition at line 129 of file popthelp.c. References _free(), poptOption::arg, poptOption::argInfo, D_, POPT_ARG_DOUBLE, POPT_ARG_FLOAT, POPT_ARG_INT, POPT_ARG_LONG, POPT_ARG_MASK, POPT_ARG_NONE, POPT_ARG_STRING, and POPT_ARG_VAL. Referenced by singleOptionHelp(). |
|
Display help text for an option.
Definition at line 200 of file popthelp.c. References _free(), poptOption::argDescrip, poptOption::argInfo, D_, poptOption::descrip, getArgDescrip(), poptOption::longName, ops, POPT_ARG_DOUBLE, POPT_ARG_FLOAT, POPT_ARG_INT, POPT_ARG_LONG, POPT_ARG_MASK, POPT_ARG_NONE, POPT_ARG_STRING, POPT_ARG_VAL, POPT_ARGFLAG_AND, POPT_ARGFLAG_LOGICALOPS, POPT_ARGFLAG_NOT, POPT_ARGFLAG_ONEDASH, POPT_ARGFLAG_OPTIONAL, POPT_ARGFLAG_OR, POPT_ARGFLAG_SHOW_DEFAULT, POPT_ARGFLAG_XOR, poptOption::shortName, singleOptionDefaultValue(), and poptOption::val. Referenced by itemHelp(), and singleTableHelp(). |
|
Definition at line 525 of file popthelp.c. References poptOption::argInfo, getArgDescrip(), poptOption::longName, POPT_ARGFLAG_ONEDASH, and poptOption::shortName. Referenced by itemUsage(), and singleTableUsage(). |
|
Display help text for a table of options.
Definition at line 441 of file popthelp.c. References poptContext_s::aliases, poptOption::arg, poptOption::argInfo, D_, poptOption::descrip, poptContext_s::execs, getTableTranslationDomain(), itemHelp(), poptOption::longName, poptContext_s::numAliases, poptContext_s::numExecs, POPT_ARG_INCLUDE_TABLE, POPT_ARG_MASK, POPT_ARGFLAG_DOC_HIDDEN, poptOption::shortName, and singleOptionHelp(). Referenced by poptPrintHelp(). |
|
Display usage text for a table of options.
Definition at line 628 of file popthelp.c. References poptOption::arg, poptOption::argInfo, poptOption::longName, poptDone_s::maxopts, poptDone_s::nopts, poptDone_s::opts, POPT_ARG_INCLUDE_TABLE, POPT_ARG_INTL_DOMAIN, POPT_ARG_MASK, POPT_ARGFLAG_DOC_HIDDEN, poptOption::shortName, and singleOptionUsage(). Referenced by poptPrintUsage(). |
|
Initial value: { POPT_TABLEEND }
Definition at line 46 of file popthelp.c. |
|
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 55 of file popthelp.c. |