cli: basename main file

This commit is contained in:
Thomas Hobson 2021-03-14 19:36:12 +13:00
parent 877473b128
commit 2ab508b4d2
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,7 @@ exports.handler = async function(argv){
language: argv.language,
version: argv['language-version'],
files: files,
main: argv.file,
main: path.basename(argv.file),
args: argv.args,
stdin,
compile_timeout: argv.ct,
@ -85,6 +85,8 @@ exports.handler = async function(argv){
)
}
if(response.compile) step('Compile', response.compile)
step('Run', response.run)