Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

command line options do not work #115

Open
xlambda opened this issue May 8, 2018 · 0 comments
Open

command line options do not work #115

xlambda opened this issue May 8, 2018 · 0 comments

Comments

@xlambda
Copy link

xlambda commented May 8, 2018

The port and identify options do not work when using some the following config in package.json.

  "scripts": {
    "upload": "scp2 --port 32200 --identify d:\\\\id_rsa ./build/ [email protected]:/home/gecko/",
  },

Here's a simple patch. I do not quite understand how the .defaults method can be invoked in the module scope, but this patch seems to work correctly.
diff node_modules/scp2/bin/scp2 node_modules/scp2/bin/scp2.1

175,177c176,179
<   console.log();
<   client.defaults(defaults);
<   client.scp(src, dest, function(err) {
---
>   console.log('ddefault', client.defaults, client.scp, client);
>   c = new client.Client();
>   c.defaults(defaults);
>   client.scp(src, dest, c, function(err) {
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant