aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/args/root.hh
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-05-31 18:57:13 +0000
committerGerrit Code Review <gerrit@lix-systems>2024-05-31 18:57:13 +0000
commita75d7a5777a1f84bdc773c52e5534e08f44a1c5b (patch)
tree118dd9fdbacf88c1512f0c8c5a266cb082980268 /src/libutil/args/root.hh
parentff08d954206a557ec7afe7301cdb4bb72114875f (diff)
parentac78c1dcd501233339f6a2f2e67651c2eeac6498 (diff)
Merge "libutil: fix args assert being thrown on Darwin in nix-eval-jobs" into main
Diffstat (limited to 'src/libutil/args/root.hh')
-rw-r--r--src/libutil/args/root.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/args/root.hh b/src/libutil/args/root.hh
index f8124eaff..499ee6df4 100644
--- a/src/libutil/args/root.hh
+++ b/src/libutil/args/root.hh
@@ -65,6 +65,10 @@ protected:
*/
std::set<ExperimentalFeature> flagExperimentalFeatures;
+ virtual std::optional<std::reference_wrapper<RootArgs>> asRootArgs() override {
+ return *this;
+ }
+
private:
std::optional<std::string> needsCompletion(std::string_view s);