mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
refactor(cloudcmd) argvFirst -> argvLast
This commit is contained in:
parent
e2a720425c
commit
ffe2656b77
1 changed files with 3 additions and 2 deletions
|
|
@ -8,8 +8,9 @@
|
|||
Util = require(DIR + 'util'),
|
||||
argv = process.argv,
|
||||
length = argv.length - 1,
|
||||
argvFirst = argv[length],
|
||||
isTest = Util.isContainStr(argvFirst, 'test');
|
||||
argvLast = argv[length],
|
||||
regExp = new RegExp('^test'),
|
||||
isTest = argvLast.match(regExp);
|
||||
|
||||
if (isTest) {
|
||||
Util.log('Cloud Commander testing mode');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue