From 23b46ebcd8296f900f66a14edaeeb5b643f6513f Mon Sep 17 00:00:00 2001 From: Thraix Date: Sat, 9 Jun 2018 23:55:41 +0200 Subject: [PATCH] Add more help information with --help flag --- src/main.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 9149d8c..186040b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -41,7 +41,7 @@ void ReadFlags(int argc, char** argv) { flags |= FLAG_HELP; } - else if(flag == "--gen") + else if(flag == "--conf") { flags |= FLAG_GEN; } @@ -113,8 +113,12 @@ int main(int argc, char** argv) { LOG_INFO("Usage: makegen [options]"); LOG_INFO(" Options:"); - LOG_INFO(" -h, --help\tDisplays this information"); - LOG_INFO(" -g, --gen\tGenerate a config file for the project"); + LOG_INFO(" --help\tDisplays this information"); + LOG_INFO(" --conf\tGenerate a config file for the project"); + LOG_INFO(" install\tGenerates a Makefile and runs make install"); + LOG_INFO(" clean\tGenerates a Makefile and runs make clean"); + LOG_INFO(" rebuild\tGenerates a Makefile and runs make rebuild"); + LOG_INFO(" If no option is given it will generate a Makefile and run default make"); return 0; } if(flags & FLAG_GEN)