File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ Options:
78
78
-h, --help Display this help message.
79
79
-v, --version Display the current installed version.
80
80
-d, --description Sets description.
81
+ -i, --ignore Comma separated list of paths to ignore.
81
82
-l, --layout Template to render the documentation with.
82
83
-o, --output File to save documentation to. Defaults to stdout.
83
84
-p, --package Sets location of package.json file.
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ ${chalk.blue(' Usage:')} doxdox <path> [options]
29
29
${ chalk . yellow ( ' -h, --help' ) } Display this help message.
30
30
${ chalk . yellow ( ' -v, --version' ) } Display the current installed version.
31
31
${ chalk . yellow ( ' -d, --description' ) } Sets description.
32
+ ${ chalk . yellow ( ' -i, --ignore' ) } Comma separated list of paths to ignore.
32
33
${ chalk . yellow ( ' -l, --layout' ) } Template to render the documentation with.
33
34
${ chalk . yellow ( ' -o, --output' ) } File to save documentation to. Defaults to stdout.
34
35
${ chalk . yellow ( ' -p, --package' ) } Sets location of package.json file.
@@ -59,6 +60,7 @@ ${chalk.yellow(' -t, --title')} Sets title.
59
60
60
61
const config = {
61
62
'description' : args . flags [ '--description' ] || args . flags [ '-d' ] || pkg . description || '' ,
63
+ 'ignore' : ( args . flags [ '--ignore' ] || args . flags [ '-i' ] || '' ) . split ( / \s * , \s * / ) ,
62
64
'layout' : ( args . flags [ '--layout' ] || args . flags [ '-l' ] || 'markdown' ) . toLowerCase ( ) ,
63
65
'parser' : ( args . flags [ '--parser' ] || args . flags [ '-r' ] || 'dox' ) . toLowerCase ( ) ,
64
66
'title' : args . flags [ '--title' ] || args . flags [ '-t' ] || pkg . name || 'Untitled Project'
You can’t perform that action at this time.
0 commit comments