Kaynağa Gözat

Fix type of --memorylimit, --disklimit, and --warcsplit values

tags/v0.1.1
JustAnotherArchivist 5 yıl önce
ebeveyn
işleme
984d28ede0
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. +3
    -3
      qwarc/cli.py

+ 3
- 3
qwarc/cli.py Dosyayı Görüntüle

@@ -45,9 +45,9 @@ def main():
parser.add_argument('--database', metavar = 'DBFILE', default = './qwarc.db') parser.add_argument('--database', metavar = 'DBFILE', default = './qwarc.db')
parser.add_argument('--warc', metavar = 'PREFIX', help = 'prefix for the WARC filenames', default = './qwarc') parser.add_argument('--warc', metavar = 'PREFIX', help = 'prefix for the WARC filenames', default = './qwarc')
parser.add_argument('--concurrency', type = int, default = 1) parser.add_argument('--concurrency', type = int, default = 1)
parser.add_argument('--memorylimit', metavar = 'LIMIT', help = 'pause when less than LIMIT bytes memory is free; disable if 0', default = 0)
parser.add_argument('--disklimit', metavar = 'LIMIT', help = 'pause when less than LIMIT bytes disk space is free; disable if 0', default = 0)
parser.add_argument('--warcsplit', metavar = 'SIZE', help = 'split WARCs into files of SIZE bytes; disable if 0', default = 0)
parser.add_argument('--memorylimit', metavar = 'LIMIT', type = int, help = 'pause when less than LIMIT bytes memory is free; disable if 0', default = 0)
parser.add_argument('--disklimit', metavar = 'LIMIT', type = int, help = 'pause when less than LIMIT bytes disk space is free; disable if 0', default = 0)
parser.add_argument('--warcsplit', metavar = 'SIZE', type = int, help = 'split WARCs into files of SIZE bytes; disable if 0', default = 0)
parser.add_argument('--warcdedupe', action = 'store_true', help = 'enable deduplication of WARC records') parser.add_argument('--warcdedupe', action = 'store_true', help = 'enable deduplication of WARC records')
parser.add_argument('specfile') parser.add_argument('specfile')




Yükleniyor…
İptal
Kaydet