Mercurial > hg > dmlib
comparison tools/ppl.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 |
comparison
equal
deleted
inserted
replaced
2409:1f26fd82735a | 2410:bc05bcfc4598 |
---|---|
67 | 67 |
68 | 68 |
69 static const DMOptArg optList[] = | 69 static const DMOptArg optList[] = |
70 { | 70 { |
71 { 0, '?', "help" , "Show this help", OPT_NONE }, | 71 { 0, '?', "help" , "Show this help", OPT_NONE }, |
72 { 1, 0, "license" , "Print out this program's license agreement", OPT_NONE }, | |
72 { 2, 'v', "verbose" , "Be more verbose", OPT_NONE }, | 73 { 2, 'v', "verbose" , "Be more verbose", OPT_NONE }, |
73 | 74 |
74 { 10, 0, "fs" , "Fullscreen", OPT_NONE }, | 75 { 10, 0, "fs" , "Fullscreen", OPT_NONE }, |
75 { 12, 'C', "cli" , "Do not open GUI window", OPT_NONE }, | 76 { 12, 'C', "cli" , "Do not open GUI window", OPT_NONE }, |
76 { 14, 'w', "window" , "Initial window size/resolution -w 640x480", OPT_ARGREQ }, | 77 { 14, 'w', "window" , "Initial window size/resolution -w 640x480", OPT_ARGREQ }, |
100 { | 101 { |
101 switch (optN) | 102 switch (optN) |
102 { | 103 { |
103 case 0: | 104 case 0: |
104 argShowHelp(); | 105 argShowHelp(); |
106 exit(0); | |
107 break; | |
108 | |
109 case 1: | |
110 dmPrintLicense(stdout); | |
105 exit(0); | 111 exit(0); |
106 break; | 112 break; |
107 | 113 |
108 case 2: | 114 case 2: |
109 dmVerbosity++; | 115 dmVerbosity++; |