help and version

This commit is contained in:
marketideas 2019-11-15 02:56:43 -08:00
parent 0579efb523
commit 8d6107beda
2 changed files with 8 additions and 4 deletions

View File

@ -4,7 +4,7 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
project(QAsm)
set(CMAKE_BUILD_TYPE Debug)
set(APPVERSION "1.0.1")
set(APPVERSION "4.0.9")
set(LIBRARY_NAME pal)
set(FIND_LIBRARY_USE_LIB64_PATHS TRUE)

View File

@ -14,14 +14,18 @@ programOption PAL::appOptions[] =
{
{ "debug", "d", "enable debug info (repeat for more verbosity)", "", false, true},
//{ "config", "f", "load configuration data from a <file>", " <file>", false, false},
{ "exec", "x", "execute a command [asm, link, reformat]", " <command>", false, false},
{ "exec", "x", "execute a command [asm, link, reformat] default=asm", " <command>", false, false},
{ "", "", "", "", false, false}
};
void CLASS::displayVersion()
{
cerr << "version 1234" << endl << endl;
std::string s = "";
#ifdef DEBUG
s = "-debug";
#endif
cerr << "quickASM 16++ v" << (std::string)STRINGIFY(APPVERSION) << s << endl;
}
int CLASS::runServerApp(PAL_EVENTMANAGER *em)
@ -79,7 +83,7 @@ int CLASS::runCommandLineApp(void)
if (commandargs.size() == 0)
{
fprintf(stderr, "No files given (--help for help)\n\n");
displayHelp();
return (res);
}