removed "encoding" option, added "outfile" option

This commit is contained in:
Josh Holtrop 2010-04-27 12:15:03 -04:00
parent 448b26a767
commit 9abd06a702
2 changed files with 4 additions and 4 deletions

View File

@ -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;
} }
} }