URL:
https://github.com/SSSD/sssd/pull/515
Title: #515: sssctl: Showing help even when sssd not configured
amitkumar50 commented:
"""
@pbrezina Thanks.
With /usr/local/sbin/sssctl cache-remove --help
int help = 100;
int opt;
struct poptOption options[] = {
{"debug", '\0', POPT_ARG_INT | POPT_ARGFLAG_STRIP, &debug,
0, _("The debug level to run with"), NULL },
{"help", '?', POPT_ARG_VAL | POPT_ARGFLAG_DOC_HIDDEN,
&help,
1, NULL, NULL },
POPT_TABLEEND
};
DEBUG(SSSDBG_CRIT_FAILURE,"\n[Amit] help_value=%d\n",help); //Its o/p is
0
Looks correct value is not getting filled in parameter 'help'.
Are we using correct `argInfo` and `void * arg` will depend on that.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/515#issuecomment-369824289