This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository eshell.

View the commit online.

commit 8164081818593f385fca34871b294bfeb592ee89
Author: swagtoy <m...@ow.swag.toys>
AuthorDate: Sun Oct 20 18:20:56 2024 -0400

    CMake Compile commands & arg help
---
 .gitignore        | 2 ++
 CMakeLists.txt    | 1 +
 eshell/src/main.c | 3 ++-
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 567609b..2b02800 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
 build/
+.cache
+compile_commands.json
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 66a9060..39f4b25 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,5 @@
 cmake_minimum_required(VERSION 3.15)
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
 
 project(Escript)
 
diff --git a/eshell/src/main.c b/eshell/src/main.c
index e1232a3..9c1bea3 100644
--- a/eshell/src/main.c
+++ b/eshell/src/main.c
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include <Ecore.h>
 #include <Ecore_Getopt.h>
 
@@ -35,7 +36,7 @@ main(int argc, char** argv)
 	
 	ecore_app_args_set(argc, (const char**)argv);
 	int args = ecore_getopt_parse(&options, values, argc, argv);
-	//if (args == 0)
+	if (args == 1)
 		ecore_getopt_help(stderr, &options);
 	return 0;
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to