From 04972801d1879f2043563a006aa90b6f51f029ea Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Mon, 18 Oct 2010 21:08:29 +0100 Subject: [PATCH] Add reader init option to frontend Add --init option to frontend. --- frontend/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/main.c b/frontend/main.c index 022e8890..1cc808c9 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -102,7 +102,8 @@ void usage(void) " --binary Treat input as Binary data\n" " --notext Remove human readable text\n" " --square Force Data Matrix symbols to be square\n" - , ZINT_VERSION); + " --init Create reader initialisation symbol (Code 128)\n" + , ZINT_VERSION); } int validator(char test_string[], char source[]) @@ -218,6 +219,7 @@ int main(int argc, char **argv) {"binary", 0, 0, 0}, {"notext", 0, 0, 0}, {"square", 0, 0, 0}, + {"init", 0, 0, 0}, {0, 0, 0, 0} }; c = getopt_long(argc, argv, "htb:w:d:o:i:rcmp", long_options, &option_index); @@ -231,6 +233,9 @@ int main(int argc, char **argv) if(!strcmp(long_options[option_index].name, "box")) { my_symbol->output_options += BARCODE_BOX; } + if(!strcmp(long_options[option_index].name, "init")) { + my_symbol->output_options += READER_INIT; + } if(!strcmp(long_options[option_index].name, "directeps")) { my_symbol->output_options += BARCODE_STDOUT; strncpy(my_symbol->outfile, "dummy.eps", 10);