Skip to content

Commit 2adbef4

Browse files
committed
Added option to take the code encoding.
1 parent 5e6fd59 commit 2adbef4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/apidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ var argv = nomnom
5656

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

59+
.option('encoding', {'default': 'utf-8', help : 'Set the encoding of the source code. Default is UTF-8.'})
60+
5961
.parse()
6062
;
6163

@@ -102,6 +104,7 @@ var options = {
102104
simulate : argv['simulate'],
103105
markdown : argv['markdown'],
104106
lineEnding : argv['line-ending'],
107+
encoding : argv['encoding'],
105108
};
106109

107110
if (apidoc.createDoc(options) === false) {

0 commit comments

Comments
 (0)