aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/common-eval-args.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-07-10 09:59:01 -0400
committerGitHub <noreply@github.com>2023-07-10 09:59:01 -0400
commit4a880c3cc085841a1537040405bc142fefffd7ff (patch)
tree0b7cea0077b0db53631879b95c3df75ced916f7a /src/libcmd/common-eval-args.cc
parentfea7d3b1cd49679c0fe582e14bbb70fa995da962 (diff)
parentbe518e73ae331ac2f46e6b3a0ffdfeead26e3186 (diff)
Merge pull request #8579 from obsidiansystems/findPath-cleanup-2
Further search path cleanups
Diffstat (limited to 'src/libcmd/common-eval-args.cc')
-rw-r--r--src/libcmd/common-eval-args.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcmd/common-eval-args.cc b/src/libcmd/common-eval-args.cc
index 7f97364a1..3df2c71a5 100644
--- a/src/libcmd/common-eval-args.cc
+++ b/src/libcmd/common-eval-args.cc
@@ -105,7 +105,9 @@ MixEvalArgs::MixEvalArgs()
)",
.category = category,
.labels = {"path"},
- .handler = {[&](std::string s) { searchPath.push_back(s); }}
+ .handler = {[&](std::string s) {
+ searchPath.elements.emplace_back(SearchPath::Elem::parse(s));
+ }}
});
addFlag({