rm of
This commit is contained in:
12
add.ce
12
add.ce
@@ -14,8 +14,8 @@ var fd = use('fd')
|
||||
var locator = null
|
||||
var alias = null
|
||||
|
||||
for (var i = 0; i < length(args); i++) {
|
||||
if (args[i] == '--help' || args[i] == '-h') {
|
||||
array(args, function(arg) {
|
||||
if (arg == '--help' || arg == '-h') {
|
||||
log.console("Usage: cell add <locator> [alias]")
|
||||
log.console("")
|
||||
log.console("Add a dependency to the current package.")
|
||||
@@ -25,14 +25,14 @@ for (var i = 0; i < length(args); i++) {
|
||||
log.console(" cell add gitea.pockle.world/john/cell-image image")
|
||||
log.console(" cell add ../local-package")
|
||||
$stop()
|
||||
} else if (!starts_with(args[i], '-')) {
|
||||
} else if (!starts_with(arg, '-')) {
|
||||
if (!locator) {
|
||||
locator = args[i]
|
||||
locator = arg
|
||||
} else if (!alias) {
|
||||
alias = args[i]
|
||||
alias = arg
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
if (!locator) {
|
||||
log.console("Usage: cell add <locator> [alias]")
|
||||
|
||||
Reference in New Issue
Block a user