mirror of
https://github.com/fmang/opustags.git
synced 2025-03-14 08:30:08 +01:00
Add --list by default (closes #9)
This commit is contained in:
parent
d48573ceef
commit
e1d954388e
@ -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<ListingTagsHandler>(
|
||||
StreamTagsHandler::ALL_STREAMS, std::cout));
|
||||
}
|
||||
}
|
||||
|
||||
return options;
|
||||
|
Loading…
x
Reference in New Issue
Block a user