# poptContext_s Struct Reference

`#include <poptint.h>`

## Data Fields

optionStackEntry | optionStack [POPT_OPTION_DEPTH]
optionStackEntry * | os
const char ** | leftovers
int | numLeftovers
int | nextLeftover
poptOption * | options
int | restLeftover
const char * | appName
poptItem | aliases
int | numAliases
int | flags
poptItem | execs
int | numExecs
const char ** | finalArgv
int | finalArgvCount
int | finalArgvAlloced
poptItem | doExec
const char * | execPath
int | execAbsolute
const char * | otherHelp
pbm_set * | arg_strip

## Detailed Description

Definition at line 52 of file poptint.h.

## Field Documentation

poptItem poptContext_s::aliases

Definition at line 61 of file poptint.h.

Referenced by handleAlias(), poptAddItem(), poptFreeContext(), poptPrintUsage(), and singleTableHelp().

const char* poptContext_s::appName

Definition at line 60 of file poptint.h.

Referenced by configLine(), poptFreeContext(), and poptReadDefaultConfig().

pbm_set* poptContext_s::arg_strip

Definition at line 73 of file poptint.h.

Referenced by poptFreeContext(), poptResetContext(), poptStripArg(), and poptStrippedArgv().

poptItem poptContext_s::doExec

Definition at line 69 of file poptint.h.

Referenced by execCommand(), handleExec(), poptGetNextOpt(), and poptResetContext().

int poptContext_s::execAbsolute

Definition at line 71 of file poptint.h.

Referenced by execCommand(), and poptSetExecPath().

const char* poptContext_s::execPath

Definition at line 70 of file poptint.h.

Referenced by execCommand(), poptFreeContext(), and poptSetExecPath().

poptItem poptContext_s::execs

Definition at line 64 of file poptint.h.

Referenced by handleExec(), poptAddItem(), poptFreeContext(), poptPrintUsage(), and singleTableHelp().

const char** poptContext_s::finalArgv

Definition at line 66 of file poptint.h.

Referenced by execCommand(), handleExec(), poptFreeContext(), poptGetNextOpt(), and poptResetContext().

int poptContext_s::finalArgvAlloced

Definition at line 68 of file poptint.h.

Referenced by handleExec(), and poptGetNextOpt().

int poptContext_s::finalArgvCount

Definition at line 67 of file poptint.h.

Referenced by execCommand(), handleExec(), poptGetNextOpt(), and poptResetContext().

int poptContext_s::flags

Definition at line 63 of file poptint.h.

Referenced by handleExec(), poptGetNextOpt(), and showHelpIntro().

const char** poptContext_s::leftovers

Definition at line 55 of file poptint.h.

Referenced by execCommand(), poptFreeContext(), poptGetArg(), poptGetArgs(), poptGetNextOpt(), and poptPeekArg().

int poptContext_s::nextLeftover

Definition at line 57 of file poptint.h.

Referenced by poptGetArg(), poptGetArgs(), poptPeekArg(), and poptResetContext().

int poptContext_s::numAliases

Definition at line 62 of file poptint.h.

Referenced by handleAlias(), poptAddItem(), poptFreeContext(), poptPrintUsage(), and singleTableHelp().

int poptContext_s::numExecs

Definition at line 65 of file poptint.h.

Referenced by handleExec(), poptAddItem(), poptFreeContext(), poptPrintUsage(), and singleTableHelp().

int poptContext_s::numLeftovers

Definition at line 56 of file poptint.h.

Referenced by execCommand(), poptGetArg(), poptGetArgs(), poptGetNextOpt(), poptPeekArg(), and poptResetContext().

struct poptOption* poptContext_s::options

Definition at line 58 of file poptint.h.

Referenced by poptGetNextOpt(), poptPrintHelp(), and poptPrintUsage().

struct optionStackEntry poptContext_s::optionStack[POPT_OPTION_DEPTH]

Definition at line 53 of file poptint.h.

Referenced by findNextArg(), handleAlias(), poptBadOption(), poptGetNextOpt(), poptResetContext(), poptStripArg(), poptStuffArgs(), and showHelpIntro().

struct optionStackEntry* poptContext_s::os

Definition at line 54 of file poptint.h.

Referenced by findNextArg(), handleAlias(), poptBadOption(), poptFreeContext(), poptGetInvocationName(), poptGetNextOpt(), poptGetOptArg(), poptResetContext(), and poptStuffArgs().

const char* poptContext_s::otherHelp

Definition at line 72 of file poptint.h.

Referenced by poptFreeContext(), poptPrintHelp(), poptPrintUsage(), and poptSetOtherOptionHelp().

int poptContext_s::restLeftover

Definition at line 59 of file poptint.h.

Referenced by poptGetNextOpt(), and poptResetContext().

The documentation for this struct was generated from the following file:

- popt/poptint.h