File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,17 @@ async function main() {
33
33
} )
34
34
. help ( 'h' )
35
35
. alias ( 'h' , 'help' )
36
+ . strict ( )
36
37
. argv ;
37
38
if ( argv . version ) {
38
39
// TODO: print real version
39
40
process . stdout . write ( 'v5.27.0\n' ) ;
40
41
return ;
41
42
}
43
+ if ( argv . _ . length == 0 && ! argv . shared_memory ) {
44
+ // TODO: show usage
45
+ return ;
46
+ }
42
47
const osrm = new OSRMWrapper_1 . OSRMWrapper ( {
43
48
path : argv . _ [ 0 ] ,
44
49
dataset_name : argv . dataset_name ,
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ async function main() {
31
31
} )
32
32
. help ( 'h' )
33
33
. alias ( 'h' , 'help' )
34
+ . strict ( )
34
35
. argv ;
35
36
36
37
if ( argv . version ) {
@@ -39,6 +40,11 @@ async function main() {
39
40
return ;
40
41
}
41
42
43
+ if ( argv . _ . length == 0 && ! argv . shared_memory ) {
44
+ // TODO: show usage
45
+ return ;
46
+ }
47
+
42
48
const osrm = new OSRMWrapper ( {
43
49
path : argv . _ [ 0 ] ,
44
50
dataset_name : argv . dataset_name ,
You can’t perform that action at this time.
0 commit comments