comparison sidinfo.c @ 321:3bb2e0bdd1f0

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 11 Jan 2020 21:58:45 +0200
parents e315bed7d791
children 5dfce66cc390
comparison
equal deleted inserted replaced
320:e315bed7d791 321:3bb2e0bdd1f0
117 117
118 118
119 // Define option arguments 119 // Define option arguments
120 static const th_optarg optList[] = 120 static const th_optarg optList[] =
121 { 121 {
122 { 0, '?', "help", "Show this help", OPT_NONE }, 122 { 0, '?', "help", "Show this help", OPT_NONE },
123 { 1, 'v', "verbose", "Be more verbose", OPT_NONE }, 123 { 10, 0, "license", "Print out this program's license agreement", OPT_NONE },
124 {10, 0, "license", "Print out this program's license agreement", OPT_NONE }, 124 { 1, 'v', "verbose", "Be more verbose", OPT_NONE },
125 125
126 { 2, 'p', "parsable", "Output in script-parsable format", OPT_NONE }, 126 { 2, 'p', "parsable", "Output in script-parsable format", OPT_NONE },
127 { 5, 'n', "noprefix", "Output without field name prefix", OPT_NONE }, 127 { 5, 'n', "noprefix", "Output without field name prefix", OPT_NONE },
128 { 6, 'l', "line", "Output in one line format, -l <field separator>", OPT_ARGREQ }, 128 { 6, 'l', "line", "Output in one line format, -l <field separator>", OPT_ARGREQ },
129 {11, 'e', "escape", "Escape these characters in fields (see note)", OPT_ARGREQ }, 129 { 11, 'e', "escape", "Escape these characters in fields (see note)", OPT_ARGREQ },
130 { 3, 'f', "fields", "Show only specified field(s)", OPT_ARGREQ }, 130 { 3, 'f', "fields", "Show only specified field(s)", OPT_ARGREQ },
131 { 4, 'x', "hex", "Use hexadecimal values", OPT_NONE }, 131 { 4, 'x', "hex", "Use hexadecimal values", OPT_NONE },
132 { 7, 'F', "format", "Use given format string (see below)", OPT_ARGREQ }, 132 { 7, 'F', "format", "Use given format string (see below)", OPT_ARGREQ },
133 { 8, 'H', "hvsc", "Specify path to HVSC root directory", OPT_ARGREQ }, 133 { 8, 'H', "hvsc", "Specify path to HVSC root directory", OPT_ARGREQ },
134 { 9, 'S', "sldb", "Specify Songlengths.(txt|md5) file", OPT_ARGREQ }, 134 { 9, 'S', "sldb", "Specify Songlengths.(txt|md5) file", OPT_ARGREQ },
135 {13, 'T', "stildb", "Specify STIL.txt file", OPT_ARGREQ }, 135 { 13, 'T', "stildb", "Specify STIL.txt file", OPT_ARGREQ },
136 {12, 'R', "recurse", "Recurse into sub-directories", OPT_NONE }, 136 { 12, 'R', "recurse", "Recurse into sub-directories", OPT_NONE },
137 }; 137 };
138 138
139 static const int optListN = sizeof(optList) / sizeof(optList[0]); 139 static const int optListN = sizeof(optList) / sizeof(optList[0]);
140 140
141 141