Fix CLI argument logic again
This commit is contained in:
parent
e1a031bd88
commit
176d88bb0c
|
@ -319,7 +319,7 @@ function baseUrl(arg) {
|
|||
}
|
||||
|
||||
function getLinkUrl(argv) {
|
||||
if (argv.length > 0) {
|
||||
if (argv.length > 1) {
|
||||
return baseUrl(argv[argv.length - 1])
|
||||
} else {
|
||||
return null
|
||||
|
|
Loading…
Reference in New Issue