mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI2,Config: Add 'override' verbosity option
This allows for 'override' messages to be silenced without requiring footnotes be completely disabled. The 'override' verbosity implies 'footnotes'.
This commit is contained in:
parent
0d682ee7a9
commit
1fb19671c4
3 changed files with 10 additions and 6 deletions
|
@ -299,7 +299,9 @@ void CLI2::applyOverrides (int argc, const char** argv)
|
|||
std::string name = raw.substr (3, sep - 3);
|
||||
std::string value = raw.substr (sep + 1);
|
||||
context.config.set (name, value);
|
||||
context.footnote (format (STRING_PARSER_OVERRIDE_RC, name, value));
|
||||
|
||||
if (context.verbose("override"))
|
||||
context.footnote (format (STRING_PARSER_OVERRIDE_RC, name, value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue