cli: fix --blank always raising read-only's parsing error

This commit is contained in:
jean-emmanuel 2017-03-22 21:10:59 +01:00
parent 9b2961e434
commit 6baf98107a

View file

@ -53,7 +53,7 @@ var options = {
'disable-vsync':{type:'boolean',describe:'disable gui\'s vertical synchronization', restart: true},
'read-only':{type:'boolean',describe:'disable session editing and session history changes',
check: (r, argv)=>{
return (!argv.b) ?
return (!r || !argv.b) ?
true : 'blank session can\'t be started in read-only mode'
}
},