mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 13:37:20 +02:00
Context
- Restored header if the 'information' command is assumed.
This commit is contained in:
parent
97428397a5
commit
d5d60b672a
1 changed files with 7 additions and 0 deletions
|
@ -247,6 +247,7 @@ int Context::initialize (int argc, const char** argv)
|
|||
|
||||
// Extract a recomposed command line.
|
||||
bool foundDefault = false;
|
||||
bool foundAssumed = false;
|
||||
std::string combined;
|
||||
std::vector <A>::const_iterator a;
|
||||
for (a = cli._args.begin (); a != cli._args.end (); ++a)
|
||||
|
@ -258,11 +259,17 @@ int Context::initialize (int argc, const char** argv)
|
|||
|
||||
if (a->hasTag ("DEFAULT"))
|
||||
foundDefault = true;
|
||||
|
||||
if (a->hasTag ("ASSUMED"))
|
||||
foundAssumed = true;
|
||||
}
|
||||
|
||||
if (foundDefault)
|
||||
header ("[" + combined + "]");
|
||||
|
||||
if (foundAssumed)
|
||||
header (STRING_ASSUME_INFO);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// [8] Run on.launch hooks.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue