Merge pull request #11087 from electron/abi-version
fix: Bring back --abi
This commit is contained in:
commit
40b94e97e5
1 changed files with 9 additions and 2 deletions
|
@ -34,6 +34,9 @@ for (let i = 0; i < argv.length; i++) {
|
||||||
} else if (argv[i] === '--require' || argv[i] === '-r') {
|
} else if (argv[i] === '--require' || argv[i] === '-r') {
|
||||||
option.modules.push(argv[++i])
|
option.modules.push(argv[++i])
|
||||||
continue
|
continue
|
||||||
|
} else if (argv[i] === '--abi' || argv[i] === '-a') {
|
||||||
|
option.abi = true
|
||||||
|
continue
|
||||||
} else if (argv[i][0] === '-') {
|
} else if (argv[i][0] === '-') {
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
|
@ -328,6 +331,9 @@ if (option.file && !option.webdriver) {
|
||||||
} else if (option.version) {
|
} else if (option.version) {
|
||||||
console.log('v' + process.versions.electron)
|
console.log('v' + process.versions.electron)
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
|
} else if (option.abi) {
|
||||||
|
console.log(process.versions.modules)
|
||||||
|
process.exit(0)
|
||||||
} else if (option.default) {
|
} else if (option.default) {
|
||||||
const indexPath = path.join(__dirname, '/index.html')
|
const indexPath = path.join(__dirname, '/index.html')
|
||||||
loadApplicationByUrl(`file://${indexPath}`)
|
loadApplicationByUrl(`file://${indexPath}`)
|
||||||
|
@ -348,8 +354,9 @@ if (option.file && !option.webdriver) {
|
||||||
Options:
|
Options:
|
||||||
-d, --default Run the default bundled Electron app.
|
-d, --default Run the default bundled Electron app.
|
||||||
-i, --interactive Open a REPL to the main process.
|
-i, --interactive Open a REPL to the main process.
|
||||||
-r, --require Module to preload (option can be repeated)
|
-r, --require Module to preload (option can be repeated).
|
||||||
-v, --version Print the version.`
|
-v, --version Print the version.
|
||||||
|
-a, --abi Print the Node ABI version.`
|
||||||
|
|
||||||
console.log(welcomeMessage)
|
console.log(welcomeMessage)
|
||||||
const indexPath = path.join(__dirname, '/index.html')
|
const indexPath = path.join(__dirname, '/index.html')
|
||||||
|
|
Loading…
Reference in a new issue