-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.py
More file actions
21 lines (15 loc) · 1.16 KB
/
cli.py
File metadata and controls
21 lines (15 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import argparse
import mangamaker
def cli():
parser = argparse.ArgumentParser(description="Main file to merge files.")
parser.add_argument('-o', '--output', help='output location (full path)', type=str, default=r'volumes') # might be broken (have to specify path in weird ways)
parser.add_argument('-i', '--input', help='path to your cbz archives/covers(if using --use covers)', type=str , default=r'archives')
parser.add_argument('--keep', help='Keep cbz files default:false (True/False)', type=bool, default=False)
parser.add_argument('--batch_size', help='# of zip files per mobi(5)', type=int, default=5)
parser.add_argument('--use', help='use: set(meta), dowload(covers), download(zips)', type=str, nargs=1)
parser.add_argument('--kcc', help='specify the kcc options you would like to use', type=str, default="-u --croppingpower 0.80 --manga-style", nargs='+')
parser.add_argument('--skip', help='only use kcc with local archives folder', type=bool, default=False)
args = parser.parse_args()
mangamaker.main(args)
cli()
# add functionality (make it so that if you already have the cbz you can just use kcc on it)