Skip to content

Commit

Permalink
feat: segment argument for pinyin cli
Browse files Browse the repository at this point in the history
  • Loading branch information
hotoo committed Mar 22, 2022
1 parent a0c42e4 commit bd5b934
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ install:
@npm install

publish: test
@npm publish --tag v3
@npm publish --tag alpha
@git tag $(version)
@git push origin $(version)

Expand Down
2 changes: 1 addition & 1 deletion bin/pinyin
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ commander.
option('-v, --version', 'output the version number').
option('-s, --style <style>', 'pinyin styles: [NORMAL,TONE,TONE2,INITIALS,FIRST_LETTER]').
option('-m, --mode <mode>', 'pinyin mode: [NORMAL,SURNAME]').
option('-S, --segment', 'segmentation word to phrases').
option('-S, --segment [segment]', 'segmentation word to phrases, support "nodejieba", "@node-rs/jieba", "segmentit"').
option('-h, --heteronym', 'output heteronym pinyins').
option('-g, --group', 'output group by phrases').
option('-c, --compact', 'output the compact pinyin result').
Expand Down

0 comments on commit bd5b934

Please sign in to comment.