mirror of
https://github.com/QuasarApp/CopyrightFixer.git
synced 2025-04-28 02:34:45 +00:00
commit
fa6a1cd8ff
@ -6,14 +6,46 @@
|
||||
//#
|
||||
|
||||
#include <quasarapp.h>
|
||||
#include <iostream>
|
||||
|
||||
void helpCall();
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
||||
if (!QuasarAppUtils::Params::parseParams(argc, argv)) {
|
||||
QuasarAppUtils::Params::log("wrong parametrs", QuasarAppUtils::Warning);
|
||||
exit(0);
|
||||
helpCall();
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (QuasarAppUtils::Params::isEndable("h") || QuasarAppUtils::Params::isEndable("help")) {
|
||||
helpCall();
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief helpCall - a helper call that display infotmation
|
||||
* about the arguments and how to use them
|
||||
*/
|
||||
void helpCall(){
|
||||
|
||||
QuasarAppUtils::Help::Charters help = {
|
||||
{
|
||||
"Part 0 General", {
|
||||
{"h or help", "These arguments represent a helper call that describes the functionality of each method"},
|
||||
{"-sourceDir path/to/source/dir", "This arrgument sets path to the source directory. By default it is sourceDir = PWD"},
|
||||
{"-sign path/to/sign/file", "This argument sets path to the sign patern. This is a required argument"},
|
||||
{"-currentOwner ownerName", "This argument sets name of the current owner of the code."},
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
help += QuasarAppUtils::Params::getparamsHelp();
|
||||
|
||||
QuasarAppUtils::Params::showHelp(help);
|
||||
|
||||
exit(0);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user