launcher: accept json session files and print a deprecation warning in the console (issue #101)

This commit is contained in:
bordun 2017-09-16 14:10:27 +02:00
parent 2a319b85fb
commit a941ac621b
3 changed files with 8 additions and 3 deletions

View file

@ -13,9 +13,9 @@ var options = {
true : 'Sync hosts must be ip:port pairs & port must be >= 1024'
}
},
'l':{alias:'load',type:'string',file:'js',describe:'session file to load'},
'l':{alias:'load',type:'string',file:{name:'OSC Session (.json)', extensions: ['json', 'js']},describe:'session file to load'},
'b':{alias:'blank',type:'boolean',describe:'load a blank session and start the editor'},
'c':{alias:'custom-module',type:'string',file:'js',describe:'custom module file to load'},
'c':{alias:'custom-module',type:'string',file:{name:'OSC Custom module (.js)', extensions: ['js']},describe:'custom module file to load'},
'p':{alias:'port',type:'number',describe:'http port of the server (default to 8080)',
check: (p)=>{
return (!isNaN(p) && p > 1023 && parseInt(p)===p) ?