mirror of
https://github.com/marketideas/qasm.git
synced 2024-12-26 23:29:22 +00:00
help and version
This commit is contained in:
parent
0579efb523
commit
8d6107beda
@ -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)
|
||||
|
||||
|
10
qasm.cpp
10
qasm.cpp
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user