Skip to content

Commit

Permalink
fix: cli args not work
Browse files Browse the repository at this point in the history
  • Loading branch information
nieheyong committed Oct 21, 2024
1 parent f4fb765 commit c213a33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ const { execSync } = require("child_process");
const path = require("path");

try {
execSync(`node --inspect ${path.join(__dirname, "../src/index.js")}`, {
const main = path.join(__dirname, "../src/index.js");
const argv = process.argv.slice(2).join(' ');
execSync(`node --inspect ${main} ${argv}`, {
stdio: "inherit",
});
} catch (error) {
} catch (error) {
process.exit(1);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logcat-in-devtools",
"version": "0.1.5",
"version": "0.1.6",
"description": "View android adb logcat logs in chrome devtools console",
"homepage": "https://github.com/nieheyong/logcat-in-devtools.git",
"repository": {
Expand Down

0 comments on commit c213a33

Please sign in to comment.