mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 04:27:20 +02:00
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:
parent
c59afe34c4
commit
84b3055690
3 changed files with 20 additions and 17 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue