@ -49,32 +49,32 @@ void usage()
< < std : : endl
< < " Purpose: " < < std : : endl
< < " \t Deliver ZIM file articles via HTTP"
< < " \t Deliver ZIM file (s) articles via HTTP"
< < std : : endl < < std : : endl
< < " Mandatory arguments: " < < std : : endl
< < " \t LIBRARY_PATH \t \t is the XML library file path listing ZIM file to serve. To be used only with the --library argument."
< < " \t LIBRARY_PATH \t \t XML library file path listing ZIM file to serve. To be used only with the --library argument."
< < std : : endl
< < " \t ZIM_PATH \t \t is the path of a ZIM file. "
< < " \t ZIM_PATH \t \t ZIM file path(s) "
< < std : : endl < < std : : endl
< < " Optional arguments: " < < std : : endl < < std : : endl
< < " \t -h, --help \t \t p rint this help" < < std : : endl < < std : : endl
< < " \t -a, --attachToProcess \t e xit if given process id is not running anymore" < < std : : endl
< < " \t -d, --daemon \t \t d etach the HTTP server daemon from the main process" < < std : : endl
< < " \t -i, --address \t \t l isten only on this ip address, all available ones otherwise" < < std : : endl
< < " \t -M, --monitorLibrary \t \t m onitor the XML library file and reload it automatically" < < std : : endl
< < " \t -m, --nolibrarybutton \t do no t print the builtin home button in the builtin top bar overlay" < < std : : endl
< < " \t -n, --nosearchbar \t do no t print the builtin bar overlay on the top of each served page" < < std : : endl
< < " \t -b, --blockexternal \t p revent users from directly accessing external links" < < std : : endl
< < " \t -h, --help \t \t P rint this help" < < std : : endl < < std : : endl
< < " \t -a, --attachToProcess \t W xit if given process id is not running anymore" < < std : : endl
< < " \t -d, --daemon \t \t D etach the HTTP server daemon from the main process" < < std : : endl
< < " \t -i, --address \t \t L isten only on this ip address, all available ones otherwise" < < std : : endl
< < " \t -M, --monitorLibrary \t M onitor the XML library file and reload it automatically" < < std : : endl
< < " \t -m, --nolibrarybutton \t Don' t print the builtin home button in the builtin top bar overlay" < < std : : endl
< < " \t -n, --nosearchbar \t Don' t print the builtin bar overlay on the top of each served page" < < std : : endl
< < " \t -b, --blockexternal \t P revent users from directly accessing external links" < < std : : endl
< < " \t -p, --port \t \t TCP port on which to listen to HTTP requests (default: 80) " < < std : : endl
< < " \t -r, --urlRootLocation \t URL prefix on which the content should be made available (default: /) " < < std : : endl
< < " \t -t, --threads \t \t n umber of threads to run in parallel (default: " < < DEFAULT_THREADS < < " ) " < < std : : endl
< < " \t -v, --verbose \t \t p rint debug log to STDOUT" < < std : : endl
< < " \t -V, --version \t \t p rint software version" < < std : : endl
< < " \t -z, --nodatealiases \t c reate URL aliases for each content by removing the date" < < std : : endl
< < " \t -c, --customIndex \t a dd path to custom index.html for welcome page" < < std : : endl
< < " \t -L, --ipConnectionLimit \t Limit on the number of (concurrent) connections made to the server from the same IP address (default: infinite, recommended: >= 6)" < < std : : endl
< < " \t -t, --threads \t \t N umber of threads to run in parallel (default: " < < DEFAULT_THREADS < < " ) " < < std : : endl
< < " \t -v, --verbose \t \t P rint debug log to STDOUT" < < std : : endl
< < " \t -V, --version \t \t P rint software version" < < std : : endl
< < " \t -z, --nodatealiases \t C reate URL aliases for each content by removing the date" < < std : : endl
< < " \t -c, --customIndex \t A dd path to custom index.html for welcome page" < < std : : endl
< < " \t -L, --ipConnectionLimit \t Max number of (concurrent) connections per IP (default: infinite, recommended: >= 6)" < < std : : endl
< < std : : endl
< < " Documentation: " < < std : : endl