2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 05:07:43 +00:00

Add '-y' flag for hecl

This commit is contained in:
Jack Andersen
2016-03-23 16:51:57 -10:00
parent 51d4caf252
commit d35408376c
4 changed files with 31 additions and 25 deletions

View File

@@ -26,6 +26,7 @@ struct ToolPassInfo
hecl::Database::Project* project = nullptr; hecl::Database::Project* project = nullptr;
unsigned verbosityLevel = 0; unsigned verbosityLevel = 0;
bool force = false; bool force = false;
bool yes = false;
}; };
class ToolBase class ToolBase

View File

@@ -151,6 +151,8 @@ public:
hecl::Printf(_S("\n")); hecl::Printf(_S("\n"));
} }
if (!m_info.yes)
{
if (XTERM_COLOR) if (XTERM_COLOR)
hecl::Printf(_S("\n" BLUE BOLD "Continue?" NORMAL " (Y/n) ")); hecl::Printf(_S("\n" BLUE BOLD "Continue?" NORMAL " (Y/n) "));
else else
@@ -176,6 +178,7 @@ public:
#ifndef _WIN32 #ifndef _WIN32
tcsetattr(0, TCSANOW, &tioOld); tcsetattr(0, TCSANOW, &tioOld);
#endif #endif
}
hecl::Printf(_S("\n")); hecl::Printf(_S("\n"));

View File

@@ -201,6 +201,8 @@ int main(int argc, const char** argv)
++info.verbosityLevel; ++info.verbosityLevel;
else if (*chit == _S('f')) else if (*chit == _S('f'))
info.force = true; info.force = true;
else if (*chit == _S('y'))
info.yes = true;
else else
info.flags.push_back(*chit); info.flags.push_back(*chit);
} }

2
hecl/extern/boo vendored

Submodule hecl/extern/boo updated: 1eb46301c0...ca38805776