Mercurial > hg > dmlib
diff tools/fanalyze.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 | ebb4650f3cc1 |
line wrap: on
line diff
--- a/tools/fanalyze.c Mon Jan 13 22:25:21 2020 +0200 +++ b/tools/fanalyze.c Mon Jan 13 22:26:24 2020 +0200 @@ -165,6 +165,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, 'g', "grep" , "Binary grep <val>[,<val2>...][:<le|be>[8|16|32]]", OPT_ARGREQ }, @@ -492,6 +493,11 @@ break; case 1: + dmPrintLicense(stdout); + exit(0); + break; + + case 2: dmVerbosity++; break;