0

I am trying to run a simple script for Tessel passing command arguments and expect them to be available in process.argv, but only getting the first two of them.

Running script via t2 run index.js myparam Logging process.argv I am getting [ '/usr/bin/node', '/tmp/remote-script/index.js' ], but not getting myparam as third parameter.

Any help would be highly appreciated.

Caminante
  • 46
  • 6

1 Answers1

0

Try t2 run index.js [ myparam ].

Source: https://github.com/tessel/t2-cli/blob/558a132adfbecf18e569b1c16991c0605a953a6b/bin/tessel-2.js#L572-L593.

Shaunak Kashyap
  • 598
  • 3
  • 6