From 9abd06a702e1dc758775076767f0cd1b300f238c Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 27 Apr 2010 12:15:03 -0400 Subject: [PATCH] removed "encoding" option, added "outfile" option --- imbecile.cc | 8 ++++---- testinput.i => testinput.I | 0 2 files changed, 4 insertions(+), 4 deletions(-) rename testinput.i => testinput.I (100%) 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