Skip to content

Commit

Permalink
fix edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
RedYetiDev committed Aug 14, 2024
1 parent 0fe513e commit e132c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_dotenv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ std::vector<std::string> Dotenv::GetPathFromArgs(
paths.push_back(arg.substr(11)); // Directly extract the path
} else if (arg == "--env-file" && i + 1 < args.size()) {
paths.push_back(args[++i]); // Advance to the next argument
}
} else if (arg[1] != '-') ++i;
}
return paths;
}
Expand Down

0 comments on commit e132c00

Please sign in to comment.