Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing the outputted script with arguments though command line #52

Open
KaivnD opened this issue May 17, 2019 · 1 comment
Open

Executing the outputted script with arguments though command line #52

KaivnD opened this issue May 17, 2019 · 1 comment

Comments

@KaivnD
Copy link

KaivnD commented May 17, 2019

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?

@ff6347
Copy link
Member

ff6347 commented May 18, 2019

Can you provide an example script and command line call?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants