comparison sidinfo.c @ 121:a2c2c63311de

Change in th_args API.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 03 Mar 2016 11:37:22 +0200
parents ecbc8cabd6a2
children ffccc712409a
comparison
equal deleted inserted replaced
120:ecbc8cabd6a2 121:a2c2c63311de
12 12
13 // Some constants 13 // Some constants
14 #define SET_DEF_CHARSET "utf-8" 14 #define SET_DEF_CHARSET "utf-8"
15 #define SET_SLDB_FILENAME "Songlengths.txt" 15 #define SET_SLDB_FILENAME "Songlengths.txt"
16 16
17
17 enum 18 enum
18 { 19 {
19 OTYPE_OTHER = 0, 20 OTYPE_OTHER = 0,
20 OTYPE_STR = 1, 21 OTYPE_STR = 1,
21 OTYPE_INT = 2, 22 OTYPE_INT = 2,
93 BOOL setUseChConv; 94 BOOL setUseChConv;
94 iconv_t setChConv; 95 iconv_t setChConv;
95 96
96 97
97 // Define option arguments 98 // Define option arguments
98 static const th_optarg_t optList[] = 99 static const th_optarg optList[] =
99 { 100 {
100 { 0, '?', "help", "Show this help", OPT_NONE }, 101 { 0, '?', "help", "Show this help", OPT_NONE },
101 // { 1, 'v', "verbose", "Be more verbose", OPT_NONE }, 102 // { 1, 'v', "verbose", "Be more verbose", OPT_NONE },
102 { 2, 'p', "parsable", "Output in script-parsable format", OPT_NONE }, 103 { 2, 'p', "parsable", "Output in script-parsable format", OPT_NONE },
103 { 5, 'n', "noprefix", "Output without field name prefix", OPT_NONE }, 104 { 5, 'n', "noprefix", "Output without field name prefix", OPT_NONE },