We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75a9549 commit b893bdbCopy full SHA for b893bdb
src/cli.ts
@@ -151,7 +151,6 @@ async function runScript(
151
152
async function readScript() {
153
const [firstArg] = argv._
154
- updateArgv(argv._.slice(firstArg === undefined ? 0 : 1))
155
156
let script = ''
157
let scriptPath = ''
@@ -173,6 +172,7 @@ async function readScript() {
173
172
const { name, ext = argv.ext } = path.parse(new URL(firstArg).pathname)
174
tempPath = getFilepath($.cwd, name, ext)
175
} else {
+ updateArgv(argv._.slice(firstArg === undefined ? 0 : 1))
176
script = await fs.readFile(firstArg, 'utf8')
177
scriptPath = firstArg.startsWith('file:')
178
? url.fileURLToPath(firstArg)
0 commit comments