Skip to content

Command line arguments not passed on to (live) script #587

@j-k

Description

@j-k

I used to use LiveScript also as a replacement for shell/bash/batch/Makfile-like scripts. It was a good feature that the lsc binary passed on the remaining arguments to the script file like, e.g.:

lsc script.ls arg1 arg2 ...

then arg1, arg2, ... were available in script.ls with process.argv.
For LiveScript 1.3.0 this seems to be no longer the case. It thinks that arg1, ... are additional files and says:

Can't find arg1.ls

Is it a non-intended use-case using LiveScripts with arguments or is it an overlooked side-effect of maybe the introduction of optionator in lsc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions