diff --git a/lib/cli.js b/lib/cli.js index 404ec3d4..5793fbfd 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -763,7 +763,7 @@ program , 'your s3 bucket name' , String) .option('--profile ' - , 'your aws credentions profile name' + , 'your aws credentials profile name' , String , 'stf-storage') .option('--endpoint ' @@ -774,7 +774,7 @@ program require('./units/storage/amazons3')({ port: options.port , profile: options.profile - , Bucket: options.bucket + , bucket: options.bucket , endpoint: options.endpoint , expires: options.expires }) @@ -1003,19 +1003,6 @@ program , [600, 800]) .option('--mute-master' , 'whether to mute master volume when devices are being used') - .option('--use-s3' - , 'use amazon s3') - .option('--s3-bucket ' - , 'your Bucket name' - , String) - .option('--s3-profile ' - , 'aws credential Profile name' - , String - , 'stf-storage') - .option('--s3-endpoint ' - , 's3 endpoint' - , String - , 's3-ap-northeast-1.amazonaws.com') .option('--lock-rotation' , 'whether to lock rotation when devices are being used') .action(function(serials, options) { @@ -1134,7 +1121,7 @@ program ]) // storage - , procutil.fork(__filename, [ + , procutil.fork(__filename, [ util.format('storage-%s', options.storageType) , '--port', options.storagePort ].concat(JSON.parse(options.storageOptions)))