Refactor and prepare for future CLI implementation

This commit is contained in:
Essem 2023-03-08 14:41:13 -06:00
parent de308ca795
commit cc7ea2762c
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
17 changed files with 152 additions and 115 deletions

26
natives/cli/image.cc Normal file
View file

@ -0,0 +1,26 @@
#include <cstring>
#include <iostream>
#include "../common.h"
void showUsage(char *path) {
std::cout << "Usage: " << path << " operation [--arg=\"param\"] [...]" << std::endl;
}
int main(int argc, char *argv[]) {
if (argc < 1 ||
(argc == 1 && !strcmp(argv[1], "-h"))) {
showUsage(argv[0]);
#ifdef _WIN32
system("PAUSE");
#endif
return 1;
}
char *op = argv[1];
//handleArguments(argc, argv);
std::cout << "This does nothing yet, but it might in the future!" << std::endl;
return 0;
}