Files
ptprnt/src/main.cpp
Moritz Martinius 2d37f6fcfb
All checks were successful
Build ptprnt / build (push) Successful in 3m50s
cli-parser-cleanup (#15)
Reviewed-on: moritz/ptouch-prnt#15
2025-10-13 19:23:27 +00:00

32 lines
1.1 KiB
C++

/*
ptrnt - print labels on linux
Copyright (C) 2022-2025 Moritz Martinius
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "PtouchPrint.hpp"
int main(int argc, char** argv) {
ptprnt::PtouchPrint ptouchprnt(PROJ_VERSION);
int ret = ptouchprnt.init(argc, argv);
if (ret != 0) {
// Non-zero from init means don't continue
// Positive values = clean exit (help/version)
// Negative values = error
return ret > 0 ? 0 : ret;
}
return ptouchprnt.run();
}