File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ npm i -g code-path-graph
26
26
code-path-graph [--detail=<...>] [--ecma-version=<...>] [--source-type=<...>] <file>
27
27
```
28
28
29
- ** ` detail ` ** controls the information printed in nodes of the graph. Valid values are:
29
+ ** ` -- detail` ** controls the information printed in nodes of the graph. Valid values are:
30
30
31
31
* ` nodes ` \
32
32
Print node traversal info only (default)
@@ -35,15 +35,15 @@ Print segment names only
35
35
* ` full ` \
36
36
Print both segment names and node traversal info
37
37
38
- ** ` ecmaVersion ` ** specifies the JavaScript language version.
38
+ ** ` --ecma-version ` ** specifies the JavaScript language version.
39
39
Valid values are numbers or the string ` latest ` (default).
40
40
41
- ** ` sourceType ` ** specifies the type of JavaScript code. Valid values are:
41
+ ** ` --source-type ` ** specifies the type of JavaScript code. Valid values are:
42
42
43
43
* ` script ` \
44
- Script (default for ` ecmaVersion ` 3 or 5 )
44
+ Script (default when ` --ecma-version ` is ` 3 ` or ` 5 ` )
45
45
* ` module ` \
46
- ECMAScript module (default for other values of ` ecmaVersion ` )
46
+ ECMAScript module (default for other values of ` --ecma-version ` )
47
47
* ` commonjs ` \
48
48
CommonJS module
49
49
Original file line number Diff line number Diff line change @@ -86,17 +86,17 @@ if (isDeepStrictEqual(args, ['--help']))
86
86
'\n' +
87
87
'Create Mermaid state diagrams of code paths in a JavaScript file.\n' +
88
88
'\n' +
89
- '`detail` controls the information printed in nodes of the graph. Valid values are:\n' +
89
+ '`-- detail` controls the information printed in nodes of the graph. Valid values are:\n' +
90
90
' nodes Print node traversal info only (default)\n' +
91
91
' segments Print segment names only\n' +
92
92
' full Print both segment names and node traversal info\n' +
93
93
'\n' +
94
- '`ecmaVersion ` specifies the JavaScript language version.\n' +
95
- 'Valid values are numbers or the string " latest" (default).\n' +
94
+ '`--ecma-version ` specifies the JavaScript language version.\n' +
95
+ 'Valid values are numbers or the string ` latest` (default).\n' +
96
96
'\n' +
97
- '`sourceType ` specifies the type of JavaScript code. Valid valus are:\n' +
98
- ' script Script (default for `ecmaVersion` 3 or 5 )\n' +
99
- ' module ECMAScript module (default for other values of `ecmaVersion `)\n' +
97
+ '`--source-type ` specifies the type of JavaScript code. Valid valus are:\n' +
98
+ ' script Script (default when `--ecma-version` is `3` or `5` )\n' +
99
+ ' module ECMAScript module (default for other values of `--ecma-version `)\n' +
100
100
' commonjs CommonJS module\n' ;
101
101
console . log ( message ) ;
102
102
}
You can’t perform that action at this time.
0 commit comments