diff --git a/imbecile.cc b/imbecile.cc index 966b482..9eee2ed 100644 --- a/imbecile.cc +++ b/imbecile.cc @@ -11,11 +11,11 @@ int main(int argc, char * argv[]) { int longind = 1; int opt; - const char * encoding = "UTF-8"; + const char * output_fname = ""; static struct option longopts[] = { /* name, has_arg, flag, val */ - { "encoding", required_argument, NULL, 'e' }, + { "outfile", required_argument, NULL, 'o' }, { NULL, 0, NULL, 0 } }; @@ -23,8 +23,8 @@ int main(int argc, char * argv[]) { switch (opt) { - case 'e': /* encoding */ - encoding = optarg; + case 'o': /* outfile */ + output_fname = optarg; break; } } diff --git a/testinput.i b/testinput.I similarity index 100% rename from testinput.i rename to testinput.I