diff tools/xm2jss.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 f5848606d5ad
line wrap: on
line diff
--- a/tools/xm2jss.c	Mon Jan 13 22:25:21 2020 +0200
+++ b/tools/xm2jss.c	Mon Jan 13 22:26:24 2020 +0200
@@ -48,6 +48,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, 'i', "ignore"          , "Ignore errors", OPT_NONE },
@@ -94,6 +95,10 @@
             exit(0);
             break;
 
+        case 1:
+            dmPrintLicense(stdout);
+            exit(0);
+            break;
 
         case 2:
             dmVerbosity++;