src/relpipe-tr-validator.cpp
branchv_0
changeset 4 fc58054da255
parent 3 8731263d44f1
equal deleted inserted replaced
3:8731263d44f1 4:fc58054da255
    14  *
    14  *
    15  * You should have received a copy of the GNU General Public License
    15  * You should have received a copy of the GNU General Public License
    16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
    16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
    17  */
    17  */
    18 
    18 
       
    19 #include <cstdio>
    19 #include <cstdlib>
    20 #include <cstdlib>
    20 #include <memory>
    21 #include <memory>
    21 
    22 
    22 #include <relpipe/cli/CLI.h>
    23 #include <relpipe/cli/CLI.h>
    23 #include <relpipe/cli/RelpipeCLIException.h>
    24 #include <relpipe/cli/RelpipeCLIException.h>
    36 using namespace relpipe::cli;
    37 using namespace relpipe::cli;
    37 using namespace relpipe::reader;
    38 using namespace relpipe::reader;
    38 using namespace relpipe::tr::validator;
    39 using namespace relpipe::tr::validator;
    39 
    40 
    40 int main(int argc, char**argv) {
    41 int main(int argc, char**argv) {
       
    42 	setlocale(LC_ALL, "");
       
    43 	CLI::untieStdIO();
    41 	CLI cli(argc, argv);
    44 	CLI cli(argc, argv);
    42 	
    45 	
    43 	int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;
    46 	int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;
    44 
    47 
    45 	try {
    48 	try {