gingerit
gingerit copied to clipboard
Command Line Tool
Added command-line tool. Can be invoked using python gingerit.py
and takes in the following arguments:
usage: python gingerit.py [-h] -i INPUT [-o] [-f FILE] [-t {split,truncate}] [-v VERIFY]
Gingerit CLI
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Input text or path to text file
-o, --output Print detailed output
-f FILE, --file FILE Redirect to output file
-t {split,truncate}, --truncation {split,truncate}
Truncation strategy if the text length exceeds 600 characters
-v VERIFY, --verify VERIFY
It also handles issue #18 of the text being too long in length by splitting the text into chunks and then recombining it.
A test for the CLI has been included in tests/test_gingerit_cli.py
.