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

Support passing node options #732

Closed
ebruchez opened this issue May 9, 2016 · 0 comments
Closed

Support passing node options #732

ebruchez opened this issue May 9, 2016 · 0 comments
Assignees

Comments

@ebruchez
Copy link

ebruchez commented May 9, 2016

For example --expose-gc.

This should work with:

  • t2 run
  • t2 push

@johnnyman727 confirms that there isn't a way to send Node args at the moment.

@rwaldron rwaldron self-assigned this Jul 20, 2016
rwaldron added a commit to rwaldron/t2-cli that referenced this issue Jul 20, 2016
…esselgh-732

Uses the "subarg" syntax:

t2 run index.js [foo bar baz -a 1 -b 2 --named --key=value]

Will result in process.argv on the deployed program:

[ '/usr/bin/node',
  '/tmp/remote-script/index.js',
  'foo',
  'bar',
  'baz',
  '-a',
  '1',
  '-b',
  '2',
  '--named',
  '--key=value' ]

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron added a commit to rwaldron/t2-cli that referenced this issue Jul 20, 2016
…esselgh-732

Uses the "subarg" syntax:

t2 run index.js [foo bar baz -a 1 -b 2 --named --key=value]

Will result in process.argv on the deployed program:

[ '/usr/bin/node',
  '/tmp/remote-script/index.js',
  'foo',
  'bar',
  'baz',
  '-a',
  '1',
  '-b',
  '2',
  '--named',
  '--key=value' ]

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron added a commit to rwaldron/t2-cli that referenced this issue Jul 20, 2016
…esselgh-732

Uses the "subarg" syntax:

t2 run index.js [foo bar baz -a 1 -b 2 --named --key=value]

Will result in process.argv on the deployed program:

[ '/usr/bin/node',
  '/tmp/remote-script/index.js',
  'foo',
  'bar',
  'baz',
  '-a',
  '1',
  '-b',
  '2',
  '--named',
  '--key=value' ]

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron added a commit to rwaldron/t2-cli that referenced this issue Jul 20, 2016
…esselgh-732

Uses the "subarg" syntax:

t2 run index.js [foo bar baz -a 1 -b 2 --named --key=value]

Will result in process.argv on the deployed program:

[ '/usr/bin/node',
  '/tmp/remote-script/index.js',
  'foo',
  'bar',
  'baz',
  '-a',
  '1',
  '-b',
  '2',
  '--named',
  '--key=value' ]

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron added a commit to rwaldron/t2-cli that referenced this issue Jul 20, 2016
…esselgh-732

Uses the "subarg" syntax:

t2 run index.js [foo bar baz -a 1 -b 2 --named --key=value]

Will result in process.argv on the deployed program:

[ '/usr/bin/node',
  '/tmp/remote-script/index.js',
  'foo',
  'bar',
  'baz',
  '-a',
  '1',
  '-b',
  '2',
  '--named',
  '--key=value' ]

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron added a commit to rwaldron/t2-cli that referenced this issue Jul 20, 2016
…esselgh-732

Uses the "subarg" syntax:

t2 run index.js [foo bar baz -a 1 -b 2 --named --key=value]

Will result in process.argv on the deployed program:

[ '/usr/bin/node',
  '/tmp/remote-script/index.js',
  'foo',
  'bar',
  'baz',
  '-a',
  '1',
  '-b',
  '2',
  '--named',
  '--key=value' ]

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron added a commit to rwaldron/t2-cli that referenced this issue Jul 22, 2016
…esselgh-732

Uses the "subarg" syntax:

t2 run index.js [foo bar baz -a 1 -b 2 --named --key=value]

Will result in process.argv on the deployed program:

[ '/usr/bin/node',
  '/tmp/remote-script/index.js',
  'foo',
  'bar',
  'baz',
  '-a',
  '1',
  '-b',
  '2',
  '--named',
  '--key=value' ]

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
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