library/src/blockclass/subclasses/BP_CommandLineOptionParser.cc
// display the options as they exist
display the options as they exist
display the options as they exist
BP_ERROR_T BP_CommandLineOptionParser::displayOptions()
{
	if(!this->tokens)
		return ERR_FAILURE;
	if(!this->tokens_n)
		return ERR_FAILURE;
	printf("\n\t [+] Displaying Options in Stack (%p)", this->tokens);
	size_t n = 0;
	for(; n < this->tokens_n; n++)
	{
		printf("\n");
		this->displayOption(&this->tokens[n]);
	}
	printf("\n\n");
	return ERR_SUCCESS;
}
BP_ERROR_T BP_CommandLineOptionParser :: displayOptions ( ) { if ( ! this -> tokens ) return ERR_FAILURE ; if ( ! this -> tokens_n ) return ERR_FAILURE ; printf ( " \n \t " , this -> tokens ) ; size_t n = 0 ; for ( ; n < this -> tokens_n ; n ++ ) { printf ( " \n " ) ; this -> displayOption ( & this -> tokens [ n ] ) ; } printf ( " \n \n " ) ; return ERR_SUCCESS ; }
display the options as they exist
display the options as they exist
// check to see if tokens are set // display simple message // walk individual tokens and display argument data // add newline between option // display the option // display trailing newlines // return indicating success