server: --client-size and --client-position options not parsed correctly

This commit is contained in:
jean-emmanuel 2023-04-15 13:23:12 +02:00
parent 808b8b3176
commit 6954727196
2 changed files with 3 additions and 2 deletions

View file

@ -5,6 +5,7 @@
- bug fixes
- launcher: `Ctrl+M` keyboard shortcut not working
- widgets: regression incurring a small delay before resolving a property that depends on a widget's own value
- server: `--client-size` and `--client-position` options not parsed correctly
- advanced syntaxes
- support `@{}` inside `IMPORT{}`

View file

@ -96,13 +96,13 @@ module.exports = {
'docs': {type: 'boolean', describe: 'serve documentation website locally and open it with the system\'s default browser', launcher: false},
'client-position': {type: 'string', describe: 'position of the client window ("x,y" pair of integers)', launcher: false,
check: (s)=>{
return s.match(/^[0-9]+,[0-9]+$/) ?
return !s.match(/^[0-9]+,[0-9]+$/) ?
'Position must a x,y pair of integers' : true
}
},
'client-size': {type: 'string', describe: 'size of the client window ("width,height" pair of integers)', launcher: false,
check: (s)=>{
return s.match(/^[0-9]+,[0-9]+$/) ?
return !s.match(/^[0-9]+,[0-9]+$/) ?
'Size must a x,y pair of integers' : true
}
},