Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 8c31dcd

Browse files
committed
Fix parsing of id on command line
1 parent 4864ad7 commit 8c31dcd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/include/cli.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,12 @@ class cli {
241241

242242
if (this.data.project) return this.data.project;
243243

244-
let projects = _.uniq(_.filter(this.args, arg => !Number.isNaN(new Number(arg))));
244+
let projects = _.uniq(_.filter(this.args, arg => isNaN(new Number(arg))));
245245
this.args = _.difference(this.args, projects);
246246

247+
if(projects.length == 0)
248+
return null;
249+
247250
return this.data.project = projects;
248251
}
249252

0 commit comments

Comments
 (0)