Skip to content

Commit

Permalink
radosgw-admin: Create --secret-key alias for --secret
Browse files Browse the repository at this point in the history
Fixes: #5821

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
  • Loading branch information
zhouyuan committed Jul 25, 2015
1 parent f7bda95 commit 5db5825
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rgw/rgw_admin.cc
Expand Up @@ -117,7 +117,8 @@ void _usage()
cerr << " --subuser=<name> subuser name\n";
cerr << " --access-key=<key> S3 access key\n";
cerr << " --email=<email>\n";
cerr << " --secret=<key> specify secret key\n";
cerr << " --secret/--secret-key=<key>\n";
cerr << " specify secret key\n";
cerr << " --gen-access-key generate random access key (for S3)\n";
cerr << " --gen-secret generate random secret key\n";
cerr << " --key-type=<type> key type, options are: swift, s3\n";
Expand Down Expand Up @@ -1172,7 +1173,7 @@ int main(int argc, char **argv)
access_key = val;
} else if (ceph_argparse_witharg(args, i, &val, "--subuser", (char*)NULL)) {
subuser = val;
} else if (ceph_argparse_witharg(args, i, &val, "--secret", (char*)NULL)) {
} else if (ceph_argparse_witharg(args, i, &val, "--secret", "--secrte-key", (char*)NULL)) {
secret_key = val;
} else if (ceph_argparse_witharg(args, i, &val, "-e", "--email", (char*)NULL)) {
user_email = val;
Expand Down

0 comments on commit 5db5825

Please sign in to comment.