Refactor and prepare for future CLI implementation
This commit is contained in:
parent
de308ca795
commit
cc7ea2762c
17 changed files with 152 additions and 115 deletions
26
natives/cli/image.cc
Normal file
26
natives/cli/image.cc
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue