dissect: use Unicode characters to draw the TLV tree on the terminal
Change-Id: If92176528361cb57f5e5a0a31a9c501d7fff54e7
diff --git a/tools/dissect/main.cpp b/tools/dissect/main.cpp
index a7d1e3e..b5f2a68 100644
--- a/tools/dissect/main.cpp
+++ b/tools/dissect/main.cpp
@@ -82,7 +82,6 @@
std::ifstream inputFile;
std::istream* inputStream = &std::cin;
-
if (vm.count("input-file") > 0 && inputFileName != "-") {
inputFile.open(inputFileName);
if (!inputFile) {
@@ -92,8 +91,8 @@
inputStream = &inputFile;
}
- NdnDissect program;
- program.dissect(std::cout, *inputStream);
+ NdnDissect program(*inputStream, std::cout);
+ program.dissect();
return 0;
}