diff --git a/src/templateapp.m.cpp b/src/templateapp.m.cpp index b2268ed..46a88e0 100644 --- a/src/templateapp.m.cpp +++ b/src/templateapp.m.cpp @@ -5,8 +5,13 @@ using namespace templateapp; -int main() +int main(int argc, char* argv[]) { + if (argc < 1) { + std::cerr << "Usage: " << argv[0] << std::endl; + return 1; + } + std::string question; std::cout << "What would you like to know?" << std::endl; std::cin >> question;