Merge pull request #407 from openzim/fix_help

Fix help and add test case to check this important feature
This commit is contained in:
benoit74 2024-10-08 14:00:33 +02:00 committed by GitHub
commit e8faebbb24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -59,6 +59,9 @@ jobs:
- name: build image
run: docker build -t zimit .
- name: ensure help display without issue
run: docker run -v $PWD/output:/output zimit zimit --help
- name: run crawl
run: docker run -v $PWD/output:/output zimit zimit --url http://isago.rskg.org/ --name isago --zim-file isago.zim --adminEmail test@example.com --mobileDevice "Pixel 5" --statsFilename /output/stats.json --keep

View File

@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgrade to browsertrix crawler 1.3.2, warc2zim 2.1.2 and other dependencies (#406)
### Fixed
- Fix help (#393)
## [2.1.2] - 2024-09-09
### Changed

View File

@ -287,7 +287,7 @@ def run(raw_args):
parser.add_argument(
"--diskUtilization",
help="Save state and exit if disk utilization exceeds this percentage value."
" Default (if not set) is 90%. Set to 0 to disable disk utilization check.",
" Default (if not set) is 90%%. Set to 0 to disable disk utilization check.",
type=int,
default=90,
)