File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ program
34
34
"Output compiled code or executing result to file"
35
35
)
36
36
. option ( "-r, --render" , "Outputs renderings" )
37
- . option ( "--roman" , "Romanize identifiers" )
37
+ . option (
38
+ "--roman [method]" ,
39
+ 'Romanize identifiers. The method can be "pinyin", "baxter" or "unicode"'
40
+ )
38
41
. option ( "--log <file>" , "Save log to file" )
39
42
. option ( "--title <title>" , "Override title in rendering" )
40
43
. helpOption ( "-h, --help" , "Display help" ) ;
@@ -91,6 +94,10 @@ function preprocess() {
91
94
else if ( program . render ) program . output = `${ base } .svg` ;
92
95
else program . output = `${ base } .log` ;
93
96
}
97
+
98
+ if ( program . roman == true ) {
99
+ program . roman = "pinyin" ;
100
+ }
94
101
}
95
102
96
103
function getCompiled ( ) {
You can’t perform that action at this time.
0 commit comments