diff tools/packed.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 69a5af2eb1ea
line wrap: on
line diff
--- a/tools/packed.c	Mon Jan 13 22:25:21 2020 +0200
+++ b/tools/packed.c	Mon Jan 13 22:26:24 2020 +0200
@@ -54,6 +54,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 },
 
     {  3, 'n', "nocompress"      , "No compression / decompression", OPT_NONE },
@@ -103,6 +104,11 @@
             exit(0);
             break;
 
+        case 1:
+            dmPrintLicense(stdout);
+            exit(0);
+            break;
+
         case 2:
             dmVerbosity++;
             break;