Mercurial > hg > dmlib
diff 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 |
line wrap: on
line diff
--- a/tools/gfxconv.c Mon Jan 13 22:25:21 2020 +0200 +++ b/tools/gfxconv.c Mon Jan 13 22:26:24 2020 +0200 @@ -160,6 +160,7 @@ static const DMOptArg optList[] = { { 0, '?', "help" , "Show this help", OPT_NONE }, + { 1, 0, "license" , "Print out this program's license agreement", OPT_NONE }, { 2, 'v', "verbose" , "Be more verbose", OPT_NONE }, { 10, 'o', "output" , "Output filename", OPT_ARGREQ }, @@ -682,6 +683,11 @@ exit(0); break; + case 1: + dmPrintLicense(stdout); + exit(0); + break; + case 2: dmVerbosity++; break;