mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Context: Make default/override imply header
This commit is contained in:
parent
c5f6419dfd
commit
ed6249fee6
1 changed files with 13 additions and 0 deletions
|
@ -1071,6 +1071,19 @@ bool Context::verbose (const std::string& token)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Some flags imply "header" verbosity being active. Make it so.
|
||||
if (! verbosity.count ("header"))
|
||||
{
|
||||
for (auto flag : {"default", "override"})
|
||||
{
|
||||
if (verbosity.count (flag))
|
||||
{
|
||||
verbosity.insert ("header");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// rc.verbose=true|y|yes|1|on overrides all.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue