-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
executable file
·20 lines (15 loc) · 747 Bytes
/
main.py
File metadata and controls
executable file
·20 lines (15 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
from gender_bender import gender_bend_epub
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-i', '--input', type=str, required=True,
help='Path of epub to gender bend')
parser.add_argument('-o', '--output', type=str, required=False,
help='Path of epub to gender bend')
parser.add_argument('-n', '--interactive-naming', action='store_true',
help='Get prompted for each name (recommended for '
'accurately translating ebooks)')
args = parser.parse_args()
gender_bend_epub(args.input, args.output, args.interactive_naming)