Skip to content

Commit 8e7e445

Browse files
committed
add debug log
1 parent 7e03793 commit 8e7e445

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/cli.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ async function main() {
1414
process.argv.push('--');
1515
}
1616

17+
if (process.env.TAB_DEBUG) {
18+
console.error("RAW ARGS:", process.argv);
19+
}
20+
1721
// <packageManager> complete -- <args>
1822
if (args.length >= 2 && args[1] === 'complete') {
1923
const packageManager = args[0];
@@ -68,6 +72,8 @@ async function main() {
6872

6973
function generateCompletionScript(packageManager: string, shell: string) {
7074
const name = packageManager;
75+
console.log(process.argv);
76+
7177

7278
const isLocalDev = process.argv[1].endsWith('dist/bin/cli.js');
7379

0 commit comments

Comments
 (0)