mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(cloudcmd) rm deprecated features: --progress-of-copying, prefix -> config.prefix
This commit is contained in:
parent
1e3882506a
commit
49302a7f6f
2 changed files with 0 additions and 16 deletions
|
|
@ -86,8 +86,6 @@
|
|||
config('root', args.root);
|
||||
config('htmlDialogs', args['html-dialogs']);
|
||||
|
||||
deprecate('progress-of-copying', 'progress');
|
||||
|
||||
readConfig(args.config);
|
||||
|
||||
options = {
|
||||
|
|
@ -111,15 +109,6 @@
|
|||
return createPass(config('algo'), password);
|
||||
}
|
||||
|
||||
function deprecate(was, became) {
|
||||
var value = args[was];
|
||||
|
||||
if (value) {
|
||||
console.log('cloudcmd --' + was + ': deprecated, use --' + became);
|
||||
config(became, value);
|
||||
}
|
||||
}
|
||||
|
||||
function version() {
|
||||
console.log('v' + Info.version);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,11 +54,6 @@
|
|||
options = p.config || {},
|
||||
keys = Object.keys(options);
|
||||
|
||||
if (typeof params.prefix !== 'undefined') {
|
||||
console.log('cloudcmd: prefix property deprecated, use config.prefix instead');
|
||||
options.prefix = params.prefix;
|
||||
}
|
||||
|
||||
keys.forEach(function(name) {
|
||||
var value = options[name];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue