Context
- Restored header if the 'information' command is assumed.
This commit is contained in:
@@ -247,6 +247,7 @@ int Context::initialize (int argc, const char** argv)
|
|||||||
|
|
||||||
// Extract a recomposed command line.
|
// Extract a recomposed command line.
|
||||||
bool foundDefault = false;
|
bool foundDefault = false;
|
||||||
|
bool foundAssumed = false;
|
||||||
std::string combined;
|
std::string combined;
|
||||||
std::vector <A>::const_iterator a;
|
std::vector <A>::const_iterator a;
|
||||||
for (a = cli._args.begin (); a != cli._args.end (); ++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"))
|
if (a->hasTag ("DEFAULT"))
|
||||||
foundDefault = true;
|
foundDefault = true;
|
||||||
|
|
||||||
|
if (a->hasTag ("ASSUMED"))
|
||||||
|
foundAssumed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (foundDefault)
|
if (foundDefault)
|
||||||
header ("[" + combined + "]");
|
header ("[" + combined + "]");
|
||||||
|
|
||||||
|
if (foundAssumed)
|
||||||
|
header (STRING_ASSUME_INFO);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// [8] Run on.launch hooks.
|
// [8] Run on.launch hooks.
|
||||||
|
|||||||
Reference in New Issue
Block a user