tools: nfdc help command
refs #3780
Change-Id: Ibd0e37bad127a38e582864fadd81afadc74baf48
diff --git a/tools/nfdc/format-helpers.cpp b/tools/nfdc/format-helpers.cpp
index 3496104..942a9f1 100644
--- a/tools/nfdc/format-helpers.cpp
+++ b/tools/nfdc/format-helpers.cpp
@@ -88,6 +88,15 @@
namespace text {
+std::ostream&
+operator<<(std::ostream& os, const Spaces& spaces)
+{
+ for (int i = 0; i < spaces.nSpaces; ++i) {
+ os << ' ';
+ }
+ return os;
+}
+
Separator::Separator(const std::string& first, const std::string& subsequent)
: m_first(first)
, m_subsequent(subsequent)