removed "encoding" option, added "outfile" option
This commit is contained in:
parent
448b26a767
commit
9abd06a702
@ -11,11 +11,11 @@ int main(int argc, char * argv[])
|
|||||||
{
|
{
|
||||||
int longind = 1;
|
int longind = 1;
|
||||||
int opt;
|
int opt;
|
||||||
const char * encoding = "UTF-8";
|
const char * output_fname = "";
|
||||||
|
|
||||||
static struct option longopts[] = {
|
static struct option longopts[] = {
|
||||||
/* name, has_arg, flag, val */
|
/* name, has_arg, flag, val */
|
||||||
{ "encoding", required_argument, NULL, 'e' },
|
{ "outfile", required_argument, NULL, 'o' },
|
||||||
{ NULL, 0, NULL, 0 }
|
{ NULL, 0, NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -23,8 +23,8 @@ int main(int argc, char * argv[])
|
|||||||
{
|
{
|
||||||
switch (opt)
|
switch (opt)
|
||||||
{
|
{
|
||||||
case 'e': /* encoding */
|
case 'o': /* outfile */
|
||||||
encoding = optarg;
|
output_fname = optarg;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user