Newer
Older
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
const { productName } = require('../../../electron-builder.json');
const { version } = require('../../../package.json');
/**
* Process.argv arguments length is different in electron mode and in packaged
* mode. This small line is to harmonize the behavior for consistent parsing.
*
* @see https://github.com/tj/commander.js/issues/512
* @see https://github.com/electron/electron/issues/4690#issuecomment-217435222
*/
if (process.defaultApp !== true) {
cli
.version(version)
.allowUnknownOption()
`${productName} will not attempt to run the locally installed parity.`
`Specify the hostname portion of the WebSockets server ${productName} will connect to. IP should be an interface's IP address. (default: 127.0.0.1)`
`Specify the port portion of the WebSockets server ${productName} will connect to. (default: 8546)`