cl_log_enable_stderr(TRUE);
main(int argc, char **argv){	int argerr = 0;	int flag;	int print_options = 0;	char *input_s = NULL;	char *mutable_s = NULL;		crm_log_init("iso8601");	cl_log_set_facility(LOG_USER);		if(argc < 2) {		argerr++;	}	while (1) {		flag = getopt(argc, argv, OPTARGS);		if (flag == -1)			break;		switch(flag) {			case 'V':				cl_log_enable_stderr(TRUE);				alter_debug(DEBUG_INC);				break;			case '?':				break;			case 'd':			case 'p':			case 'D':				command = flag;				input_s = crm_strdup(optarg);				break;			case 'W':				print_options |= ha_date_weeks;				break;			case 'O':				print_options |= ha_date_ordinal;				break;			case 'L':				print_options |= ha_log_local;				break;		}	}	CRM_ASSERT(input_s != NULL);	mutable_s = input_s;	if(command == 'd') {		ha_time_t *date_time = parse_date(&mutable_s);		CRM_ASSERT(date_time != NULL);		log_date(LOG_INFO, "parsed", date_time,			 print_options|ha_log_date|ha_log_time);			} else if(command == 'p') {		ha_time_period_t *interval = parse_time_period(&mutable_s);		CRM_ASSERT(interval != NULL);		log_time_period(LOG_INFO, interval,				print_options|ha_log_date|ha_log_time);			} else if(command == 'D') {		ha_time_t *duration = parse_time_duration(&mutable_s);		CRM_ASSERT(duration != NULL);			}	return 0;}