1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 02:09:32 +02:00

Working topo and startup.

This commit is contained in:
Simo Kinnunen 2014-01-13 19:08:30 +09:00
parent 23543ec361
commit 3be72ae8c9
8 changed files with 448 additions and 201 deletions

11
lib/util/cliargs.js Normal file
View file

@ -0,0 +1,11 @@
module.exports.list = function(val) {
return val.split(/\s*,\s*/g).filter(Boolean)
}
module.exports.allUnknownArgs = function(args) {
return [].slice.call(args, 0, -1).filter(Boolean)
}
module.exports.lastArg = function(args) {
return args[args.length - 1]
}