cli: add --instance-name option to differenciate mulitple instances in zeroconf networks (issue #118)

This commit is contained in:
jean-emmanuel 2017-12-14 12:37:42 +01:00
parent 7cc4197952
commit dff73a6c47
5 changed files with 7 additions and 3 deletions

View file

@ -69,6 +69,8 @@ var options = {
true : 'blank session can\'t be started in read-only mode'
}
},
'instance-name':{type:'string',describe:'used to differenciate multiple instances in a zeroconf network'
},
}
@ -124,6 +126,7 @@ var makeDefaultConfig = function(argv){
recentSessions: [],
appName: 'Open Stage Control',
instanceName: argv['instance-name'] || false,
syncTargets: argv.s || argv.sync || false,
oscInPort: argv.o || 0,
httpPort: argv.p || 8080,