mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Rename cliargs to cliutil for consistency.
This commit is contained in:
11
lib/util/cliutil.js
Normal file
11
lib/util/cliutil.js
Normal 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]
|
||||
}
|
||||
Reference in New Issue
Block a user