A3t
- Removed diagnostics.
This commit is contained in:
14
src/A3t.cpp
14
src/A3t.cpp
@@ -442,18 +442,18 @@ void A3t::inject_defaults ()
|
|||||||
// If no command was specified, then a command will be inserted.
|
// If no command was specified, then a command will be inserted.
|
||||||
if (! found_command)
|
if (! found_command)
|
||||||
{
|
{
|
||||||
std::cout << "# ! found_command\n";
|
//std::cout << "# ! found_command\n";
|
||||||
|
|
||||||
// Default command.
|
// Default command.
|
||||||
if (! found_sequence)
|
if (! found_sequence)
|
||||||
{
|
{
|
||||||
std::cout << "# ! found_sequence\n";
|
//std::cout << "# ! found_sequence\n";
|
||||||
|
|
||||||
// Apply overrides, if any.
|
// Apply overrides, if any.
|
||||||
std::string defaultCommand = context.config.get ("default.command");
|
std::string defaultCommand = context.config.get ("default.command");
|
||||||
if (defaultCommand != "")
|
if (defaultCommand != "")
|
||||||
{
|
{
|
||||||
std::cout << "# defaultCommand\n";
|
//std::cout << "# defaultCommand\n";
|
||||||
context.debug ("No command or sequence found - assuming default.command.");
|
context.debug ("No command or sequence found - assuming default.command.");
|
||||||
capture_first (defaultCommand);
|
capture_first (defaultCommand);
|
||||||
|
|
||||||
@@ -471,13 +471,13 @@ void A3t::inject_defaults ()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::cout << "# ! defaultCommand\n";
|
//std::cout << "# ! defaultCommand\n";
|
||||||
throw std::string (STRING_TRIVIAL_INPUT);
|
throw std::string (STRING_TRIVIAL_INPUT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::cout << "# found_sequence\n";
|
//std::cout << "# found_sequence\n";
|
||||||
/*
|
/*
|
||||||
// Modify command.
|
// Modify command.
|
||||||
if (found_other)
|
if (found_other)
|
||||||
@@ -491,7 +491,7 @@ void A3t::inject_defaults ()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
*/
|
*/
|
||||||
std::cout << "# ! found_other\n";
|
//std::cout << "# ! found_other\n";
|
||||||
context.debug ("Sequence but no command found - assuming 'information' command.");
|
context.debug ("Sequence but no command found - assuming 'information' command.");
|
||||||
context.header (STRING_ASSUME_INFO);
|
context.header (STRING_ASSUME_INFO);
|
||||||
capture_first ("information");
|
capture_first ("information");
|
||||||
@@ -505,7 +505,7 @@ void A3t::inject_defaults ()
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void A3t::capture_first (const std::string& arg)
|
void A3t::capture_first (const std::string& arg)
|
||||||
{
|
{
|
||||||
std::cout << "# capture_first (" << arg << ")\n";
|
//std::cout << "# capture_first (" << arg << ")\n";
|
||||||
|
|
||||||
// Insert the arg as the new first branch.
|
// Insert the arg as the new first branch.
|
||||||
Tree* t = new Tree ("argIns");
|
Tree* t = new Tree ("argIns");
|
||||||
|
|||||||
Reference in New Issue
Block a user