3 @@ -537,21 +537,18 @@ bool CommandLine::Parse(int argc, char *argv[])
6 list<string> *filenames;
7 + filenames = new list<string>;
9 - // If the argument includes wildcard characters,
10 - // search the disk for matching files
11 - if (strchr(argv[0], '*') || strchr(argv[0], '?'))
12 + if (argv[0][0] == '-')
16 - DiskFile::SplitFilename(argv[0], path, name);
18 - filenames = DiskFile::FindFiles(path, name);
22 - filenames = new list<string>;
23 - filenames->push_back(argv[0]);
27 + if (std::getline(cin, filename))
28 + filenames->push_back(filename);
34 list<string>::iterator fn = filenames->begin();