Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

| Attribute | Shorthand | Description | Accepted Values | Default |
| ---- | ---- | ---- | ---- | ---- |
| `--quote` | `-q` | The quote type to use when converting strings | single / dobule | single |
| `--quote` | `-q` | The quote type to use when converting strings | single / double | single |
| `--input` | `-i` | Enter a name, which can be a path to a file or a folder | - | - |
| `--output` | `-o` | Output name, can be a path to a file or a folder | - | - |
| `--conver ` | `-c` | Conversion type, such as conversion to scss syntax | scss | scss |
Expand Down
2 changes: 1 addition & 1 deletion bin/conver.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function handleOptions() {
const indentVueStyleBlock = argv.v || argv.indentVueStyleBlock || 0
if (!input) throw new Error('The input parameter cannot be empty.')
if (!output) throw new Error('The output parameter cannot be empty.')
if (quote !== 'single' && quote !== 'dobule') throw new Error('The quote parameter has a problem, it can only be single or double.')
if (quote !== 'single' && quote !== 'double') throw new Error('The quote parameter has a problem, it can only be single or double.')
if (conver.toLowerCase() !== 'scss') throw new Error('The conver parameter can only be scss.')

spinner.start('Your file is being converted. Please wait...\n')
Expand Down
2 changes: 1 addition & 1 deletion doc/zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

| 参数 | 简写 | 说明 | 可选值 | 默认值 |
| ---- | ---- | ---- | ---- | ---- |
| `--quote` | `-q` | 转换中遇到字符串时,使用的引号类型 | single / dobule | single |
| `--quote` | `-q` | 转换中遇到字符串时,使用的引号类型 | single / double | single |
| `--input` | `-i` | 输入名称,可以是文件或者是文件夹的路径 | - | - |
| `--output` | `-o` | 输出名称,可以是文件或者是文件夹的路径 | - | - |
| `--conver ` | `-c` | 转换类型,例如转换成 scss 语法 | scss | scss |
Expand Down