We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c389b commit 1f53ceaCopy full SHA for 1f53cea
src/tools/fdsdump/src/options.cpp
@@ -11,6 +11,7 @@
11
#include <iostream>
12
13
#include <getopt.h>
14
+#include <string>
15
#include <unistd.h>
16
17
#include <common/common.hpp>
@@ -133,7 +134,15 @@ void Options::parse(int argc, char *argv[])
133
134
}
135
136
if (args.has('F')) {
- m_input_filter = args.get('F');
137
+ if (args.get('F') == "-") {
138
+ std::string line;
139
+ while (std::getline(std::cin, line)) {
140
+ m_input_filter.append(line);
141
+ m_input_filter.append("\n");
142
+ }
143
+ } else {
144
+ m_input_filter = args.get('F');
145
146
147
148
if (args.has('A')) {
0 commit comments