Skip to content

Commit

Permalink
cli: fix arg parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 1, 2023
1 parent 1180d9f commit eef67a9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/cli/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"args": [
"ffplay",
"Kitchen",
"getVideoStream"
"getRecordingStream",
"{\"startTime\":1677699495709}"
],
"sourceMaps": true,
"resolveSourceMapLocations": [
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scrypted",
"version": "1.0.59",
"version": "1.0.60",
"description": "",
"main": "./dist/packages/cli/src/main.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async function runCommand() {
if (!device)
throw new Error('device not found: ' + idOrName);
const method = process.argv[4];
const args = process.argv.slice(5).map(arg => () => {
const args = process.argv.slice(5).map(arg => {
try {
return JSON.parse(arg);
}
Expand Down

0 comments on commit eef67a9

Please sign in to comment.