@v1hz/md2docx 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cli.ts +1 -1
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -102,7 +102,7 @@ export function parseCliArgs(args: string[], configOptions: ConfigOption[]): Cli
|
|
|
102
102
|
positional.push(arg);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
if (!result.help && !result.web) {
|
|
105
|
+
if (!result.help && !result.version && !result.web) {
|
|
106
106
|
if (positional.length === 0) throw new Error("缺少 Markdown 文件路径");
|
|
107
107
|
if (positional.length > 1) throw new Error("只能指定一个 Markdown 文件路径");
|
|
108
108
|
result.mdPath = positional[0];
|