mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug
- Fixed bug whereby arguments were categorized, then defaults were injected but no subsequent categorization occurred. - Added debug diagnostics for default.command, 'modify' and 'information' default processing.
This commit is contained in:
parent
ccd32cb7d6
commit
a171f6e4ac
2 changed files with 10 additions and 1 deletions
|
@ -463,6 +463,7 @@ void A3::inject_defaults ()
|
|||
std::string defaultCommand = context.config.get ("default.command");
|
||||
if (defaultCommand != "")
|
||||
{
|
||||
context.debug ("No command or sequence found - assuming default.command.");
|
||||
capture_first (defaultCommand);
|
||||
context.header ("[" + combine () + "]");
|
||||
}
|
||||
|
@ -474,12 +475,14 @@ void A3::inject_defaults ()
|
|||
// Modify command.
|
||||
if (found_other)
|
||||
{
|
||||
context.debug ("Sequence and filter, but no command found - assuming 'modify' command.");
|
||||
capture_first ("modify");
|
||||
}
|
||||
|
||||
// Information command.
|
||||
else
|
||||
{
|
||||
context.debug ("Sequence but no command found - assuming 'information' command.");
|
||||
context.header (STRING_ASSUME_INFO);
|
||||
capture_first ("information");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue