mirror of
https://github.com/Karaka-Management/oms-OnlineResourceWatcher.git
synced 2026-01-18 11:18:40 +00:00
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
/**
|
|
* Karaka
|
|
*
|
|
* @package App
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://karaka.app
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "cOMS/Utils/ArrayUtils.h"
|
|
|
|
#ifndef OMS_DEMO
|
|
#define OMS_DEMO false
|
|
#endif
|
|
|
|
void printHelp()
|
|
{
|
|
printf(" The Online Resource Watcher app developed by jingga checks online or local resources\n");
|
|
printf(" for changes and and informs the user about them.\n\n");
|
|
printf(" Run: ./App ....\n\n");
|
|
printf(" -h: Prints the help output\n");
|
|
printf(" -v: Prints the version\n");
|
|
printf("\n");
|
|
printf(" Website: https://jingga.app\n");
|
|
printf(" Copyright: jingga (c) Dennis Eichhorn\n");
|
|
}
|
|
|
|
void printVersion()
|
|
{
|
|
printf("Version: 1.0.0\n");
|
|
}
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
bool hasHelpCmd = Utils::ArrayUtils::has_arg("-h", argv, argc);
|
|
if (hasHelpCmd) {
|
|
printHelp();
|
|
|
|
return 0;
|
|
}
|
|
|
|
bool hasVersionCmd = Utils::ArrayUtils::has_arg("-v", argv, argc);
|
|
if (hasVersionCmd) {
|
|
printVersion();
|
|
|
|
return 0;
|
|
}
|
|
}
|