bool b_color = config_GetInt( p_this, "color" ) > 0;
bool b_has_advanced = false;
bool b_found = false;
+ int i_only_advanced = 0; /* Number of modules ignored because they
+ * only have advanced options */
memset( psz_spaces_text, ' ', PADDING_SPACES+LINE_START );
psz_spaces_text[PADDING_SPACES+LINE_START] = '\0';
}
if( p_item == p_end )
+ {
+ i_only_advanced++;
continue;
+ }
}
b_found = true;
_( "add --advanced to your command line to see advanced options."));
}
- if( !b_found )
+ if( i_only_advanced > 0 )
+ {
+ if( b_color )
+ {
+ utf8_fprintf( stdout, "\n" WHITE "%s" GRAY " ", _( "Note:" ) );
+ utf8_fprintf( stdout, _( "%d module(s) were not displayed because they only have advanced options.\n" ), i_only_advanced );
+ }
+ else
+ {
+ utf8_fprintf( stdout, "\n%s ", _( "Note:" ) );
+ utf8_fprintf( stdout, _( "%d module(s) were not displayed because they only have advanced options.\n" ), i_only_advanced );
+ }
+ }
+ else if( !b_found )
{
if( b_color )
utf8_fprintf( stdout, "\n" WHITE "%s" GRAY "\n",