troxy-cli 1.30.15 → 1.30.16

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/troxy.js +3 -2
  2. package/package.json +1 -1
package/bin/troxy.js CHANGED
@@ -762,7 +762,8 @@ switch (command) {
762
762
 
763
763
  // ── Help / default ────────────────────────────────────────────
764
764
  default:
765
- if (command) console.error(` Unknown command: ${command}\n`);
765
+ const asksHelp = ['help', '--help', '-h'].includes(command);
766
+ if (command && !asksHelp) console.error(` Unknown command: ${command}\n`);
766
767
  console.log(`
767
768
  Troxy: make your Claude usage go further
768
769
 
@@ -782,6 +783,6 @@ switch (command) {
782
783
  In Claude Code: /troxy status, /troxy off, /troxy on
783
784
  Help: https://docs.troxy.io or support@troxy.io
784
785
  `);
785
- process.exit(command ? 1 : 0);
786
+ process.exit(command && !asksHelp ? 1 : 0);
786
787
  }
787
788
  } // end _run
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "troxy-cli",
3
- "version": "1.30.15",
3
+ "version": "1.30.16",
4
4
  "description": "Make your Claude Code usage go further: lighter requests, less usage, less money",
5
5
  "homepage": "https://troxy.io",
6
6
  "bugs": {