Skip to content

Commit

Permalink
Change priority for --assets-path to match flag descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
angela28chen committed Aug 18, 2023
1 parent 6c1af6c commit 8706bea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ppx/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,8 @@ void Application::DispatchConfig()

auto assetPaths = mStandardOpts.pAssetsPaths->GetValue();
if (!assetPaths.empty()) {
// Insert at front, in reverse order, so we respect the command line ordering for priority.
for (auto it = assetPaths.rbegin(); it < assetPaths.rend(); it++) {
// Asset directories specified later have higher priority
for (auto it = assetPaths.begin(); it < assetPaths.end(); it++) {
AddAssetDir(*it, /* insert_at_front= */ true);
}
}
Expand Down

0 comments on commit 8706bea

Please sign in to comment.