diff --git a/.gitignore b/.gitignore index e50b0e7..ed24528 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ lb.depend lb.layout unittest.depend curl/ -main.o \ No newline at end of file +main.o +unittest.layout diff --git a/main.cpp b/main.cpp index 8d49b18..0c11a8f 100644 --- a/main.cpp +++ b/main.cpp @@ -40,8 +40,17 @@ Input input_data(istream& stream, bool prompt) } -int main() +int main(int argc, char* argv[]) { + if (argc > 1){ + auto i = 0; + while (i < argc){ + cerr << "arg[" << i << "] = " << argv[i] << endl; + i++; + } + return 0; + } + curl_global_init(CURL_GLOBAL_ALL); bool prompt = true; auto in = input_data(cin, prompt);