mossring 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/bin/cli.js +7 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -59,9 +59,15 @@ function loadKey(keyPath) {
59
59
  }
60
60
 
61
61
  const [, , cmd, ...rest] = argv;
62
+
63
+ if (!cmd || cmd === "help" || cmd === "-h" || cmd === "--help") {
64
+ console.log(HELP);
65
+ exit(0);
66
+ }
67
+
62
68
  const { positional, opts } = parseArgs(rest);
63
69
 
64
- if (!cmd || cmd === "help" || opts.help) {
70
+ if (opts.help) {
65
71
  console.log(HELP);
66
72
  exit(0);
67
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mossring",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "用密钥文件对本地文件进行 AES-256-GCM 加密/解密的命令行工具",
5
5
  "type": "module",
6
6
  "bin": {