Goal of this PR should be to integrate a working CLI parser so that commands can be sent to the Printer class to print text, such as ptprnt -t=FooBar also, standard flags for setting the output verbosity and help should be implemented Reviewed-on: #4
This commit is contained in:
19
src/main.cpp
19
src/main.cpp
@@ -17,21 +17,16 @@
|
||||
|
||||
*/
|
||||
|
||||
#include <spdlog/common.h>
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#include "PtouchPrint.hpp"
|
||||
|
||||
void setupLogger() {
|
||||
spdlog::set_level(spdlog::level::debug);
|
||||
spdlog::info("Starting ptprnt {}", PROJ_VERSION);
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
setupLogger();
|
||||
|
||||
PtouchPrint ptouchprnt;
|
||||
ptouchprnt.init();
|
||||
ptouchprnt.run();
|
||||
|
||||
return 0;
|
||||
ptprnt::PtouchPrint ptouchprnt(PROJ_VERSION);
|
||||
int ret = ptouchprnt.init(argc, argv);
|
||||
if (ret != 0) {
|
||||
return ret;
|
||||
}
|
||||
return ptouchprnt.run();
|
||||
}
|
||||
|
Reference in New Issue
Block a user