mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
20 lines
603 B
Diff
20 lines
603 B
Diff
--- a/commandline.cpp
|
|
+++ b/commandline.cpp
|
|
@@ -539,7 +539,7 @@ bool CommandLine::Parse(int argc, char *argv[])
|
|
list<string> *filenames;
|
|
filenames = new list<string>;
|
|
|
|
- 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<string>::iterator fn = filenames->begin();
|
|
while (fn != filenames->end())
|