URL:
https://github.com/SSSD/sssd/pull/515
Title: #515: sssctl: Showing help even when sssd not configured
amitkumar50 commented:
"""
@pbrezina Thanks for review.
As I understood I need to add `poptGetOptArg(poptContext context)` function inside
`poptGetNextOpt()` to parse --help option.
But when I tried adding something as this:
while ((opt = poptGetNextOpt(pc)) != -1) {
char *value = poptGetOptArg(pc);
printf("[Amit] opt=%d\n",opt); //returned -11
printf("[Amit] value=%s\n",value); //returned null
}
Need to spend time for popt library..
"""
See the full comment at
https://github.com/SSSD/sssd/pull/515#issuecomment-368761037