diff --git a/packages/fether-electron/src/main/cli/index.js b/packages/fether-electron/src/main/cli/index.js index 8709829718897d3880f3230e5d3592a134050015..928f06c483e10c33538a92e02479fa916bd65515 100644 --- a/packages/fether-electron/src/main/cli/index.js +++ b/packages/fether-electron/src/main/cli/index.js @@ -22,6 +22,10 @@ if (process.defaultApp !== true) { cli .version(version) .allowUnknownOption() + .option( + '--chain', + 'The network to connect to, can be one of "foundation", "kovan" or "ropsten". (default: "kovan")' + ) .option( '--no-run-parity', `${productName} will not attempt to run the locally installed parity.` diff --git a/packages/fether-electron/src/main/index.js b/packages/fether-electron/src/main/index.js index 5cf7436e702e0cc03a791fc0aabc2db9b8fd9dbd..732e7743e250557b309f29daf736536158ed86a2 100644 --- a/packages/fether-electron/src/main/index.js +++ b/packages/fether-electron/src/main/index.js @@ -59,7 +59,9 @@ function createWindow () { ) .then(() => // Run parity when installed - runParity(err => handleError(err, 'An error occured with Parity.')) + runParity(['--light', '--chain', cli.chain || 'kovan'], err => + handleError(err, 'An error occured with Parity.') + ) ) .then(() => { // Notify the renderers