Skip to content

Commit

Permalink
fix(argv): exclude script filename from argv
Browse files Browse the repository at this point in the history
Fixed the root cause, sliced argv to a correct amount.

fixes #701

Signed-off-by: phukon <[email protected]>
  • Loading branch information
phukon committed Dec 16, 2023
1 parent a9b573e commit 4dbd91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export { default as path } from 'node:path'
export { default as os } from 'node:os'
export { ssh } from 'webpod'

export let argv = minimist(process.argv.slice(2))
export let argv = minimist(process.argv.slice(3))
export function updateArgv(args: string[]) {
argv = minimist(args)
;(global as any).argv = argv
Expand Down

0 comments on commit 4dbd91b

Please sign in to comment.