Main.cc
416 Bytes
/**
* Main.cc
* Created on: 11 jul. 2019
* Author: AKKA IS
*/
#include <iostream>
#include "DicError.hh"
/**
* Main function
*/
int main(int argc, char *argv[]) {
if (argc < 2) {
std::cout << "Missing required argument: errorCode" << std::endl;
return 1;
}
int errorCode = std::atoi(argv[1]);
std::cout << errorCode << " - " << getErrorMsg(errorCode) << std::endl;
return 0;
}