CLI 
phichain-converter 是一个 CLI (Command Line Interface) 程序,需要在终端中运行
在 Phichain 安装包根目录下,可以找到 phichain-converter(.exe) 文件
使用 phichain-converter --help 后得到如下内容:
text
Converts Phigros charts between different formats
Usage: phichain-converter --input <INPUT> --output <OUTPUT> <PATH>
Arguments:
  <PATH>  The path of the input chart
Options:
  -i, --input <INPUT>    The input chart format [possible values: official, phichain, rpe, primitive]
  -o, --output <OUTPUT>  The output chart format [possible values: official, phichain, rpe, primitive]
  -h, --help             Print help| 参数 | 描述 | 
|---|---|
| --input | 输入的谱面格式,可选值:official, phichain, rpe, primitive | 
| --output | 输出的谱面格式,可选值:official, phichain, rpe, primitive | 
| PATH | 输入的谱面文件路径 | 
示例 
bash
phichain-converter --input phichain --output official ./chart.json意为:将 ./chart.json 由 Phichain 谱面格式转换为官谱格式
执行后,转谱器将在输入文件同级目录下生成后缀为 .<FORMAT>.json 的文件。在这个例子中,命令执行成功后会生成 chart.official.json