mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Context: Introduce 'default' verbosity token
The purpose of this token is to control the display of information messages about taskwarrior choosing a default action of some sort.
This commit is contained in:
parent
867efe3928
commit
712f0080dd
1 changed files with 7 additions and 5 deletions
|
@ -87,7 +87,7 @@ std::string configurationDefaults =
|
|||
"\n"
|
||||
"# Miscellaneous\n"
|
||||
"# verbose= # Comma-separated list. May contain any subset of:\n"
|
||||
"# affected,blank,context,edit,filter,footnote,header,label,new-id,new-uuid,override,project,recur,special,sync"
|
||||
"# affected,blank,context,default,edit,filter,footnote,header,label,new-id,new-uuid,override,project,recur,special,sync\n"
|
||||
"verbose=affected,blank,context,edit,header,footnote,label,new-id,project,special,sync,override,recur\n"
|
||||
"confirmation=1 # Confirmation on delete, big changes\n"
|
||||
"recurrence=1 # Enable recurrence\n"
|
||||
|
@ -633,11 +633,13 @@ int Context::initialize (int argc, const char** argv)
|
|||
foundAssumed = true;
|
||||
}
|
||||
|
||||
if (foundDefault)
|
||||
header ("[" + combined + "]");
|
||||
if (verbose ("default")) {
|
||||
if (foundDefault)
|
||||
header ("[" + combined + "]");
|
||||
|
||||
if (foundAssumed)
|
||||
header ("No command specified - assuming 'information'.");
|
||||
if (foundAssumed)
|
||||
header ("No command specified - assuming 'information'.");
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue