This commit is contained in:
j3d1 2016-01-20 20:56:00 +01:00
parent 5ff845e011
commit 057a7b4344
14 changed files with 123 additions and 222 deletions

View file

@ -16,9 +16,10 @@
#include <getopt.h>
#include <unistd.h>
#include "Options.h"
#include "Constant.h"
#include "Host.h"
#include "Program.h"
#include "Switch.h"
#define no_argument 0
#define required_argument 1
@ -33,6 +34,9 @@ constexpr unsigned int caseArg(const char* str, int h = 0) {
int main(int argc, char *argv[]) {
int opt, index;
options.user = DEFAULT_USER;
options.password = DEFAULT_PASS;
const struct option longopts[] = { { "version", no_argument, 0, 'v' }, {
"help", no_argument, 0, 'h' }, { "reverse", no_argument, 0, 'r' }, {
"permanent", no_argument, 0, 's' }, { "debug", optional_argument, 0,