Start iterating on arguments at 1 since argv[0] is the executable's path
This commit is contained in:
parent
8f60e7052f
commit
80118d29a7
|
@ -16,7 +16,7 @@ int main(int argc, char* argv[]) {
|
|||
bool newLines = true;
|
||||
|
||||
set<string_view> files;
|
||||
for (signed int i = 0; i < argc; ++i)
|
||||
for (signed int i = 1; i < argc; ++i)
|
||||
{
|
||||
const string_view currentArg (argv[i]);
|
||||
if ((argc == 2) && (currentArg == Argument("version"))) { cout << Yerbacon::getVersion() << endl; exit(EXIT_SUCCESS); }
|
||||
|
|
Loading…
Reference in New Issue