diff --git a/.gitignore b/.gitignore index cca4c94..7434929 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,7 @@ glade/test_window.glade~ -output.log \ No newline at end of file +output.log +main.o +logger.o +help.o +test_gtk.o +os_info.o diff --git a/commands/help.c b/commands/help.c index ca3266c..20a5eea 100644 --- a/commands/help.c +++ b/commands/help.c @@ -12,5 +12,9 @@ #include "help.h" void outputHelp(){ - + printf("usage: netbenixCMD [option]\n"); + printf("Options:\n"); + printf("--help : this help page\n"); + printf("--gtk-test : opens the gtk test ; LINUX ONLY\n"); + printf("--os-info : shows your os informations\n"); } \ No newline at end of file diff --git a/commands/test_gtk.c b/commands/test_gtk.c index 0f6e2b2..65ef37b 100644 --- a/commands/test_gtk.c +++ b/commands/test_gtk.c @@ -10,7 +10,7 @@ GtkWidget *level; GtkBuilder *builder; -void createTestWindow(){ +void createGTKTestWindow(){ gtk_init(0, NULL); diff --git a/commands/test_gtk.h b/commands/test_gtk.h index bd5fc92..8f18578 100644 --- a/commands/test_gtk.h +++ b/commands/test_gtk.h @@ -2,7 +2,7 @@ #define _TEST_GTK_H_ #include -void createTestWindow(); +void createGTKTestWindow(); void on_button1_clicked(GtkButton *b); void on_gay_check_toggled(GtkToggleButton *t); void on_window_focus_out_event(GtkWindow *w); diff --git a/help.o b/help.o deleted file mode 100644 index 7a4b388..0000000 Binary files a/help.o and /dev/null differ diff --git a/logger.o b/logger.o deleted file mode 100644 index 4412b5a..0000000 Binary files a/logger.o and /dev/null differ diff --git a/logo.o b/logo.o deleted file mode 100644 index 2c0a87b..0000000 Binary files a/logo.o and /dev/null differ diff --git a/main.c b/main.c index 326217a..4cfc132 100644 --- a/main.c +++ b/main.c @@ -10,13 +10,9 @@ #include #include #include -#endif - - #include "commands/test_gtk.h" #endif - #include "etc/logo.h" #include "utils/logger.h" #include "utils/os_info.h" @@ -47,10 +43,11 @@ int main(int argc, char *argv[]){ logger("Logo Displayed."); if(!strcmp(argv[1], "--help")){ + logger("Showing Help"); outputHelp(); } else if (!strcmp(argv[1], "--gtk-test")){ #ifdef linux - createTestWindow(); + createGTKTestWindow(); #else printf("[ERROR] gtk-test is linux only.\n"); logger("[ERROR] gtk-test is linux only."); diff --git a/main.o b/main.o deleted file mode 100644 index 1e72d80..0000000 Binary files a/main.o and /dev/null differ diff --git a/netbenixCMD b/netbenixCMD index 49bfe2b..7541c63 100644 Binary files a/netbenixCMD and b/netbenixCMD differ diff --git a/os_info.o b/os_info.o deleted file mode 100644 index 2d2e542..0000000 Binary files a/os_info.o and /dev/null differ diff --git a/test_gtk.o b/test_gtk.o index 5504cf3..be420d1 100644 Binary files a/test_gtk.o and b/test_gtk.o differ