File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import yargs from 'yargs'
2
2
import { hideBin } from 'yargs/helpers'
3
3
import { ConnectionMethod , createServer } from '../src/createServer'
4
4
5
- const cli = yargs ( hideBin ( process . argv ) )
5
+ yargs ( hideBin ( process . argv ) )
6
6
. usage ( 'SQL Language Server Command Line Interface' )
7
7
. command ( 'up' , 'run sql-language-server' , ( v ) => {
8
8
return v . option ( 'method' , {
@@ -22,13 +22,9 @@ const cli = yargs(hideBin(process.argv))
22
22
process . stdin . resume ( )
23
23
} )
24
24
. example ( '$0 up --method stdio' , ': start up sql-language-server - communicate via stdio' )
25
+ . demandCommand ( )
25
26
. help ( )
26
-
27
- cli . parse ( )
28
-
29
- if ( ( cli . argv as any ) . _ . length === 0 ) {
30
- cli . showHelp ( )
31
- }
27
+ . parse ( ) ;
32
28
33
29
process . stdin . on ( 'close' , ( ) => {
34
30
process . exit ( 0 ) ;
You can’t perform that action at this time.
0 commit comments