From 8a505717ebc9ecf1543c4a2a0d149f2e72df8b71 Mon Sep 17 00:00:00 2001 From: JiauZhang <1743960454@qq.com> Date: Tue, 26 Mar 2024 19:43:34 +0800 Subject: [PATCH] show help info --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 2a66629..85c6c71 100644 --- a/main.cpp +++ b/main.cpp @@ -60,7 +60,9 @@ int main(int argc, char **argv) if (file_status.type() != fs::file_type::regular) { std::cerr << "Runtime Error:\n"; std::cerr << "\tKconfig file: " << kconfig - << " is not a regular file!" << std::endl; + << " is not a regular file!\n" << std::endl; + if (!parser.is_used("--kconfig")) + std::cout << parser << std::endl; std::exit(1); }