Skip to content

Commit

Permalink
Add a little banner for the console app.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sopel97 committed Nov 5, 2019
1 parent b36cd47 commit a3808ab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ConsoleApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,13 @@ namespace console_app
}
}

static void showBanner()
{
std::cout << "chess_pos_db\n";
std::cout << "console application\n";
std::cout << "see help\n";
}

void App::assertDatabaseOpened() const
{
if (m_database == nullptr)
Expand All @@ -478,6 +485,8 @@ namespace console_app

void App::run()
{
showBanner();

for (;;)
{
std::string cmdline;
Expand Down

0 comments on commit a3808ab

Please sign in to comment.