|
|
@ -7,7 +7,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
#define UNUSED(var) (void) var; |
|
|
|
#define UNUSED(var) (void) var; |
|
|
|
|
|
|
|
|
|
|
|
constexpr const char* VERSION = "1.0.0"; |
|
|
|
// Version is injected through cmake
|
|
|
|
|
|
|
|
constexpr const char* VERSION = "@qr_VERSION@"; |
|
|
|
|
|
|
|
|
|
|
|
void printHelp() { |
|
|
|
void printHelp() { |
|
|
|
std::string helpText = R"EOF( |
|
|
|
std::string helpText = R"EOF( |
|
|
@ -22,6 +23,9 @@ Usage: |
|
|
|
-o --output output file name |
|
|
|
-o --output output file name |
|
|
|
-s --size desired output file size in pixels |
|
|
|
-s --size desired output file size in pixels |
|
|
|
-t --type output QR code type. can be one of "small, medium, large" |
|
|
|
-t --type output QR code type. can be one of "small, medium, large" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In pixel based renderers (i.e. PNG), the output size may not be exactly as |
|
|
|
|
|
|
|
specified but be the nearest multiple of the actual cell size for the QR code. |
|
|
|
)EOF"; |
|
|
|
)EOF"; |
|
|
|
std::cout << "qr " << VERSION; |
|
|
|
std::cout << "qr " << VERSION; |
|
|
|
std::cout << helpText << std::endl; |
|
|
|
std::cout << helpText << std::endl; |
|
|
|