mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Add reader init option to frontend
Add --init option to frontend.
This commit is contained in:
parent
6e86af64e0
commit
04972801d1
@ -102,7 +102,8 @@ void usage(void)
|
|||||||
" --binary Treat input as Binary data\n"
|
" --binary Treat input as Binary data\n"
|
||||||
" --notext Remove human readable text\n"
|
" --notext Remove human readable text\n"
|
||||||
" --square Force Data Matrix symbols to be square\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[])
|
int validator(char test_string[], char source[])
|
||||||
@ -218,6 +219,7 @@ int main(int argc, char **argv)
|
|||||||
{"binary", 0, 0, 0},
|
{"binary", 0, 0, 0},
|
||||||
{"notext", 0, 0, 0},
|
{"notext", 0, 0, 0},
|
||||||
{"square", 0, 0, 0},
|
{"square", 0, 0, 0},
|
||||||
|
{"init", 0, 0, 0},
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
c = getopt_long(argc, argv, "htb:w:d:o:i:rcmp", long_options, &option_index);
|
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")) {
|
if(!strcmp(long_options[option_index].name, "box")) {
|
||||||
my_symbol->output_options += BARCODE_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")) {
|
if(!strcmp(long_options[option_index].name, "directeps")) {
|
||||||
my_symbol->output_options += BARCODE_STDOUT;
|
my_symbol->output_options += BARCODE_STDOUT;
|
||||||
strncpy(my_symbol->outfile, "dummy.eps", 10);
|
strncpy(my_symbol->outfile, "dummy.eps", 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user