Skip to content

Executing the outputted script with arguments though command line #52

Open
@KaivnD

Description

@KaivnD

I usually use global variable call arguments, which is an array can be used for passing arguments to the jsx file when I execute a script from command line, but extendscriptr outputted file can't be used for doing this, when I log this variable I got a function....
Then I came up with a quick solution, that is I put single line at top of outputted file with

var scriptArgs = arguments;

and I can access my command line arguments correctly with scriptArgs.
Dose anybody has better solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions