BlinkenArea - GitList
Repositories
Blog
Wiki
dxfngc
Code
Commits
Branches
Tags
Search
Tree:
1030916
Branches
Tags
master
dxfngc
src
main.cpp
license CC-BY-SA --> GPL (more suitable for source code)
Stefan Schuermans
commited
1030916
at 2013-05-27 17:35:02
main.cpp
Blame
History
Raw
/* drawing (DXF) to G-code (NGC) converter * Copyright 2013 Stefan Schuermans <stefan@schuermans.info> * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html */ #include <iostream> #include "cmdparser.h" /** * @brief main programm * @param[in] argc number of arguments * @param[in] argv argument values * @return exit code */ int main(int argc, char *argv[]) { // get parameters if (argc < 2) { std::cerr << "drawing (DXF) to G-code (NGC) converter" << std::endl << "usage: " << argv[0] << " <commands.txt>" << std::endl; return 2; } std::string strCmdFileName = argv[1]; // process commands from file CmdParser cmdParser; if (!cmdParser.procFile(strCmdFileName)) { std::cerr << "error processing command file \"" << strCmdFileName << "\"" << std::endl; return 3; } return 0; }