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.
- package/bin/troxy.js +3 -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
|
-
|
|
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
|