MCPcopy Index your code
hub / github.com/RsyncProject/rsync / poptBadOption

Function poptBadOption

popt/popt.c:1616–1632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1614}
1615
1616const char * poptBadOption(poptContext con, unsigned int flags)
1617{
1618 struct optionStackEntry * os = NULL;
1619 const char *badOpt = NULL;
1620
1621 if (con != NULL) {
1622 /* Stupid hack to return something semi-meaningful from exec failure */
1623 if (con->execFail) {
1624 badOpt = con->execFail;
1625 } else {
1626 os = (flags & POPT_BADOPTION_NOALIAS) ? con->optionStack : con->os;
1627 badOpt = os->argv[os->next - 1];
1628 }
1629 }
1630
1631 return badOpt;
1632}
1633
1634const char * poptStrerror(const int error)
1635{

Callers 3

parse_argumentsFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68