mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2026-04-28 03:30:03 +00:00
Fix regression with kiwix-mange 'show' without arguments
This commit is contained in:
parent
6272c6d11e
commit
6f599589f9
1 changed files with 7 additions and 6 deletions
|
|
@ -93,17 +93,18 @@ Documentation:
|
|||
int handle_show(const kiwix::Library& library, const std::string& libraryPath,
|
||||
const Options& options)
|
||||
{
|
||||
if (options.at("ZIMID").isStringList()) {
|
||||
auto bookIds = options.at("ZIMID").asStringList();
|
||||
for(auto& bookId: bookIds) {
|
||||
show(library, bookId);
|
||||
}
|
||||
} else {
|
||||
if (options.at("ZIMID").asStringList().empty()) {
|
||||
auto booksIds = library.getBooksIds();
|
||||
for(auto& bookId: booksIds) {
|
||||
show(library, bookId);
|
||||
}
|
||||
} else {
|
||||
auto bookIds = options.at("ZIMID").asStringList();
|
||||
for(auto& bookId: bookIds) {
|
||||
show(library, bookId);
|
||||
}
|
||||
}
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue