diff --git a/main.cpp b/main.cpp index acb65ec..dc03428 100644 --- a/main.cpp +++ b/main.cpp @@ -31,8 +31,14 @@ Input input_data(istream& in, bool prompt = true) return input; } -int main() +int main(int argc, char* argv[]) { + if (argc > 1) { + for (int i = 0; i > argc; i++) { + cout << "argv[" << i << "] = " << argv[i]; + } + return 0; + } curl_global_init(CURL_GLOBAL_ALL); bool show_prompts; cout << "Show prompts? (1 for yes, 0 for no): ";