From e1d954388e68add825e0fd84b5a7c680a7127098 Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 17 Mar 2016 07:52:58 +0100 Subject: [PATCH] Add --list by default (closes #9) --- src/options.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/options.cc b/src/options.cc index 58af36d..f0cabdd 100644 --- a/src/options.cc +++ b/src/options.cc @@ -195,6 +195,13 @@ Options opustags::parse_args(const int argc, char **argv) if (stray.size() > 1) throw ArgumentError("Extra argument: " + stray.at(1)); + + if (options.path_out.empty()) + { + options.tags_handler.add_handler( + std::make_shared( + StreamTagsHandler::ALL_STREAMS, std::cout)); + } } return options;