kiwix / kiwix-tools

Command line Kiwix tools: kiwix-serve, kiwix-manage, ...
https://download.kiwix.org/release/kiwix-tools/
GNU General Public License v3.0
462 stars 87 forks source link

[REGRESSION] kiwix-manage seems broken, "add" options are not accepted anymore #363

Closed kelson42 closed 4 years ago

kelson42 commented 4 years ago
$ kiwix-manage test.xml add wikipedia_en_piracetam_2019-07.zim --zimPathToSave="" 
kiwix-manage: unrecognized option '--zimPathToSave='
Usage:
    kiwix-manage LIBRARY_PATH add ZIM_PATH [OPTIONS]
    kiwix-manage LIBRARY_PATH remove ZIM_ID [ZIM_ID]...
    kiwix-manage LIBRARY_PATH show [ZIM_ID]...

Purpose:
    Manipulates the Kiwix library XML file

Arguments:
    LIBRARY_PATH    is the XML library file path.

    ACTION      is the pre-defined string to specify the action to run on the XML library file.

            Must be one of the following values:
            * add: add a ZIM file to the library
            * remove: remove a ZIM file from the library
            * show: show the content of the library

    ZIM_ID      ZIM file unique ID

    OPTIONS     Custom options for "add" action:
            --zimPathToSave=CUSTOM_ZIM_PATH to replace the current ZIM file path
            --url=HTTP_ZIM_URL to create an "url" attribute for the online version of the ZIM file

            Other options:
            -v, --version to print the software version

Examples:
    Add ZIM files to library: kiwix-manage my_library.xml add first.zim second.zim
    Remove ZIM files from library: kiwix-manage my_library.xml remove e5c2c003-b49e-2756-5176-5d9c86393dd9
    Show all library ZIM files: kiwix-manage my_library.xml show

Documentation:
    Source code https://github.com/kiwix/kiwix-tools
    More info   https://wiki.kiwix.org/wiki/Kiwix-manage
kelson42 commented 4 years ago

@mgautierfr There an option --origId which is not documented. What is that?