main: merge --address and --gui-only switches, update docs
This commit is contained in:
parent
2639cfd930
commit
d9e7a0cea0
5 changed files with 5 additions and 9 deletions
|
|
@ -2,9 +2,8 @@ var path = require('path'),
|
|||
shortcut = require('electron-localshortcut'),
|
||||
{app, BrowserWindow, dialog} = require('electron'),
|
||||
settings = require('./settings'),
|
||||
address = settings.read('address')? 'http://' + settings.read('address') : settings.read('appAddresses')[0]
|
||||
address = typeof settings.read('guiOnly')=='string'? 'http://' + settings.read('guiOnly') : settings.read('appAddresses')[0]
|
||||
|
||||
console.log(address)
|
||||
dialog.showErrorBox = function(title,err) {
|
||||
console.log(title + ': ' + err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,7 @@ var argv = require('yargs')
|
|||
'i':{alias:'input-port',describe:'osc input port (for synchronization)'},
|
||||
'd':{alias:'debug',describe:'log received osc messages in the console'},
|
||||
'n':{alias:'no-gui',describe:'disable default gui'},
|
||||
'g':{alias:'gui-only',describe:'only launch the gui (a server instance must be running) '},
|
||||
'a':{alias:'address',describe:'app\'s ip:port (for gui-only mode, default to localhost:8080)'},
|
||||
'g':{alias:'gui-only',describe:'app\'s ip:port, default to localhost:8080, only launch the gui (a server instance must be running)'},
|
||||
't':{alias:'theme',type:'array',describe:'theme name or path (mutliple values allowed)'},
|
||||
'examples':{describe:'list examples instead of recent sessions'}
|
||||
})
|
||||
|
|
@ -40,7 +39,6 @@ var config = function(){try {return JSON.parse(fs.readFileSync(configFile,'utf-8
|
|||
sessionFile: argv.l || false,
|
||||
noGui: argv.n || false,
|
||||
guiOnly: argv.g || false,
|
||||
address: argv.a || false,
|
||||
appAddresses:function(){
|
||||
var appAddresses = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue