mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
feature(bin) -ps -> -p, -p -> --port
This commit is contained in:
parent
8b7080cc4d
commit
ffda8aaddf
3 changed files with 14 additions and 14 deletions
|
|
@ -31,16 +31,16 @@
|
|||
'save'],
|
||||
default: {
|
||||
'auth' : config('auth'),
|
||||
'port' : config('port'),
|
||||
'online': config('online'),
|
||||
'server': true
|
||||
},
|
||||
alias: {
|
||||
v: 'version',
|
||||
h: 'help',
|
||||
p: 'port',
|
||||
p: 'password',
|
||||
on: 'online',
|
||||
u: 'username',
|
||||
ps: 'password',
|
||||
s: 'save',
|
||||
a: 'auth'
|
||||
}
|
||||
|
|
@ -94,13 +94,13 @@
|
|||
config('username', name);
|
||||
}
|
||||
|
||||
function port(number) {
|
||||
if (number) {
|
||||
if (!isNaN(number))
|
||||
config('port', number);
|
||||
else
|
||||
console.error('port: ignored, should be a number');
|
||||
}
|
||||
function port(arg) {
|
||||
var number = parseInt(arg, 10);
|
||||
|
||||
if (!isNaN(number))
|
||||
config('port', number);
|
||||
else
|
||||
console.error('port: ignored, should be a number');
|
||||
}
|
||||
|
||||
function help() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue