#!/usr/bin/env python import sys, os, json, argparse, subprocess, hashlib from kumikolib import Kumiko from lib.html import HTML import cv2 import glob parser = argparse.ArgumentParser(description='Kumiko CLI') # Input/Output parser.add_argument('-i', '--input', nargs='+', required=True, help='A file or folder name to parse') parser.add_argument('-o', '--output', nargs=1, help='A file name to save json/html output to') parser.add_argument('--rtl', action='store_true', help='Pass this option to number panels right-to-left') # HTML reader page options parser.add_argument('-b', '--browser', nargs=1, help='Opens given browser to read your comic page(s) panel-by-panel! (implies --html)', choices=['firefox','konqueror','chromium']) parser.add_argument('--html', action='store_true', help='Generates an HTML file for reading') parser.add_argument('--html-static-dir', nargs=1, help='When generating HTML, this will be the relative directory for javascript files: