Mercurial > hg > dmlib
diff tools/mod2wav.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 | aacf3bd1cceb |
line wrap: on
line diff
--- a/tools/mod2wav.c Mon Jan 13 22:25:21 2020 +0200 +++ b/tools/mod2wav.c Mon Jan 13 22:26:24 2020 +0200 @@ -65,6 +65,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, '1', "16bit" , "16-bit output", OPT_NONE }, @@ -99,6 +100,11 @@ exit(0); break; + case 1: + dmPrintLicense(stdout); + exit(0); + break; + case 2: dmVerbosity++; break;