aboutsummaryrefslogtreecommitdiff
path: root/bbot/utility.txx
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/utility.txx')
-rw-r--r--bbot/utility.txx5
1 files changed, 5 insertions, 0 deletions
diff --git a/bbot/utility.txx b/bbot/utility.txx
index edd674b..4ee4c6f 100644
--- a/bbot/utility.txx
+++ b/bbot/utility.txx
@@ -2,6 +2,8 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : TBC; see accompanying LICENSE file
+#include <iostream> // cin
+
#include <butl/fdstream>
#include <butl/manifest-parser>
@@ -148,6 +150,9 @@ namespace bbot
try
{
+ if (f.string () == "-")
+ return parse_manifest<T> (std::cin, "stdin", what, ignore_unknown);
+
if (!file_exists (f))
fail << what << " manifest file " << f << " does not exist";