Skip to content

Commit ac0dceb

Browse files
stdwordtiensonqin
authored andcommitted
feat(cli): add option to include positions meta info
1 parent ab858c0 commit ac0dceb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/package/bin/convert.cmd.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ yargs.usage('Usage: mldoc convert [options]')
3636
type: 'string',
3737
default: 'utf8'
3838
})
39+
.option('with-pos', {
40+
describe: 'Include positions meta',
41+
type: 'boolean',
42+
default: false
43+
})
3944
.option('a', {
4045
alias: 'append',
4146
describe: 'Append data to output instead of overwriting',
@@ -95,7 +100,7 @@ function run () {
95100
"format": format,
96101
"heading_to_list": false,
97102
"exporting_keep_properties": true,
98-
"inline_type_with_pos": false,
103+
"inline_type_with_pos": argv.withPos,
99104
"export_md_remove_options": [],
100105
"hiccup_in_block": true,
101106
});

0 commit comments

Comments
 (0)