--- a/commandline.cpp +++ b/commandline.cpp @@ -539,7 +539,7 @@ bool CommandLine::Parse(int argc, char *argv[]) list *filenames; filenames = new list; - if (argv[0][0] == '-') + if (argv[0][0] == '-' && argv[0][1] == '\0') { while(true) { @@ -550,6 +550,8 @@ bool CommandLine::Parse(int argc, char *argv[]) break; } } + else + filenames->push_back(argv[0]); list::iterator fn = filenames->begin(); while (fn != filenames->end())