Skip to content

Commit

Permalink
Added option to take the code encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardobsjr committed Mar 3, 2016
1 parent 5e6fd59 commit 2adbef4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/apidoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ var argv = nomnom

.option('line-ending', { help: 'Turn off autodetect line-ending. Allowed values: LF, CR, CRLF.' })

.option('encoding', {'default': 'utf-8', help : 'Set the encoding of the source code. Default is UTF-8.'})

.parse()
;

Expand Down Expand Up @@ -102,6 +104,7 @@ var options = {
simulate : argv['simulate'],
markdown : argv['markdown'],
lineEnding : argv['line-ending'],
encoding : argv['encoding'],
};

if (apidoc.createDoc(options) === false) {
Expand Down

0 comments on commit 2adbef4

Please sign in to comment.