CLI2: Pseudo-args demoted to config settings

- When 'limit:N' is encountered, it is removed from the command line, and
  added as a config setting, equivalent to 'rc.limit:N'.
- This simplifieѕ subsequent command line parsing.
This commit is contained in:
Paul Beckingham 2015-09-12 09:03:15 -04:00
parent c59afe34c4
commit 84b3055690
3 changed files with 20 additions and 17 deletions

View file

@ -595,7 +595,7 @@ void Context::getLimits (int& rows, int& lines)
lines = 0;
// This is an integer specified as a filter (limit:10).
std::string limit = cli2.getLimit ();
std::string limit = config.get ("limit");
if (limit != "")
{
if (limit == "page")