Verbosity

- Tweak to 'affected' token.  Needs more.
This commit is contained in:
Paul Beckingham 2012-02-24 18:27:39 -05:00
parent e0aabe08bf
commit a9de8a6596

View file

@ -158,14 +158,18 @@ int CmdCustom::execute (std::string& output)
out << optionalBlankLine ()
<< view.render (filtered, sequence)
<< optionalBlankLine ()
<< (filtered.size () == 1
? STRING_CMD_CUSTOM_COUNT
: format (STRING_CMD_CUSTOM_COUNTN, filtered.size ()));
<< optionalBlankLine ();
if (context.verbose ("affected"))
out << (filtered.size () == 1
? STRING_CMD_CUSTOM_COUNT
: format (STRING_CMD_CUSTOM_COUNTN, filtered.size ()));
// TODO Conditional
if (maxrows && maxrows < (int)filtered.size ())
out << ", " << format (STRING_CMD_CUSTOM_SHOWN, maxrows);
// TODO Conditional
if (maxlines && maxlines < (int)filtered.size ())
out << ", "
<< format (STRING_CMD_CUSTOM_TRUNCATED, maxlines - table_header);