cli: fix -g (false positive conflict with -n)
This commit is contained in:
parent
206470c7b4
commit
ca5132f63d
1 changed files with 2 additions and 2 deletions
|
|
@ -33,13 +33,13 @@ var options = {
|
|||
'd':{alias:'debug',type:'boolean',describe:'log received osc messages in the console'},
|
||||
'n':{alias:'no-gui',type:'boolean',describe:'disable default gui',
|
||||
check: (n,argv)=>{
|
||||
return (!argv.g) ?
|
||||
return (!n || !argv.g) ?
|
||||
true : 'no-gui and gui-only can\'s be enabled simultaneously'
|
||||
}
|
||||
},
|
||||
'g':{alias:'gui-only',type:'string',describe:'app server\'s url. If true, local port (--port) is used',
|
||||
check: (g,argv)=>{
|
||||
return (!argv.n) ?
|
||||
return (!g || !argv.n) ?
|
||||
true : 'no-gui and gui-only can\'s be enabled simultaneously'
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue