Skip to content

Commit 43ae877

Browse files
author
Ariel Barabas
committed
added usage information
1 parent 79f6423 commit 43ae877

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

cli.js

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ const
44
cli = require('commander');
55

66
cli.
7+
usage('[options] <file>').
8+
description('Split a movie script into files for each character removing ' +
9+
'comments.').
710
option('-n, --dry-run', 'don\'t write output files').
811
option('-o, --output <path>',
912
'specify output directory, default is input file without extension').

readme.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Script character extractor
2+
3+
Use this script to extract the dialogs from any movie script and get different
4+
files for every character.
5+
6+
## Usage
7+
8+
Running `node cli.js --help` will get you what you need to get started. An
9+
example would be:
10+
11+
node cli.js ~/movie_script.html
12+
13+
that will create a folder named `movie_script` in the same directory with a txt
14+
file for every character.

0 commit comments

Comments
 (0)