Skip to content

Commit

Permalink
[FEATURE][demo] Added banner
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Sep 5, 2021
1 parent 3fe282d commit 12566c8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions demo/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,19 @@ class DemoParams : public Params
copyCStr<WStringParam>(PARAM_MY_WSTRING, paramsStruct.myWBuf, _countof(paramsStruct.myWBuf));
return true;
}

void printBanner()
{
paramkit::print_in_color(CYAN, "Welcome to ParamKit Demo!");
std::cout << std::endl;
}
};

int main(int argc, char* argv[])
{
DemoParams params;
if (argc < 2) {
paramkit::print_in_color(CYAN, "Welcome to ParamKit Demo!");
std::cout << "\n";
params.printBanner();
params.info(false);
return 0;
}
Expand Down

0 comments on commit 12566c8

Please sign in to comment.