comparison tools/gfxconv.c @ 2410:bc05bcfc4598

Add a C file with the generic BSD license text and a function for printing it out, for use in the tools.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 13 Jan 2020 22:26:24 +0200
parents 60e119262c67
children 902cc22018a1
comparison
equal deleted inserted replaced
2409:1f26fd82735a 2410:bc05bcfc4598
158 158
159 159
160 static const DMOptArg optList[] = 160 static const DMOptArg optList[] =
161 { 161 {
162 { 0, '?', "help" , "Show this help", OPT_NONE }, 162 { 0, '?', "help" , "Show this help", OPT_NONE },
163 { 1, 0, "license" , "Print out this program's license agreement", OPT_NONE },
163 { 2, 'v', "verbose" , "Be more verbose", OPT_NONE }, 164 { 2, 'v', "verbose" , "Be more verbose", OPT_NONE },
164 165
165 { 10, 'o', "output" , "Output filename", OPT_ARGREQ }, 166 { 10, 'o', "output" , "Output filename", OPT_ARGREQ },
166 { 12, 's', "skip" , "Skip N bytes in input from start (negative value will be offset from input end)", OPT_ARGREQ }, 167 { 12, 's', "skip" , "Skip N bytes in input from start (negative value will be offset from input end)", OPT_ARGREQ },
167 { 14, 'i', "informat" , "Set input format (see --formats)", OPT_ARGREQ }, 168 { 14, 'i', "informat" , "Set input format (see --formats)", OPT_ARGREQ },
680 case 0: 681 case 0:
681 argShowHelp(); 682 argShowHelp();
682 exit(0); 683 exit(0);
683 break; 684 break;
684 685
686 case 1:
687 dmPrintLicense(stdout);
688 exit(0);
689 break;
690
685 case 2: 691 case 2:
686 dmVerbosity++; 692 dmVerbosity++;
687 break; 693 break;
688 694
689 case 10: 695 case 10: