Skip to content

Commit

Permalink
fix help error
Browse files Browse the repository at this point in the history
  • Loading branch information
qiankun.yqk committed Jan 11, 2017
1 parent 300b89d commit 5323938
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ var specChineseList = SpecText{
如果用户列举时缺失url参数,则ossutil获取用户的身份凭证信息(从配置文件中读取),
并列举该身份凭证下的所有buckets,并显示每个bucket的最新更新时间和位置信息。如果指定
了--short-format选项则只输出bucket名称。该用法不支持--directory选项。--multipart选
项只输出碎片名称(未completed的multipart)及其对应uploadID。--all-type选项显示普通的
object和碎片
项只输出未completed的multipart及其对应uploadID。--all-type选项显示普通的object和未
completed的multipart及其对应uploadID
2) ossutil ls oss://bucket[/prefix] [-s] [-d] [-m] [-a]
该用法列举指定bucket下的objects(如果指定了前缀,则列举拥有该前缀的objects),同时
展示了object大小,最新更新时间和etag,但是如果指定了--short-format选项则只输出object名
称。如果指定了--directory选项,则返回指定bucket下以指定前缀开头的第一层目录下的文件和子
目录,但是不递归显示所有子目录,此时默认为精简格式。如果指定了--multipart选项,则返回指
定bucket下以指定前缀开头的第一层目录下的碎片名称(未completed的multipart)和及其对应uploadID
--all-type选项显示普通的object和碎片
定bucket下以指定前缀开头的第一层目录下的未completed的multipart和及其对应uploadID
--all-type选项显示普通的object和未completed的multipart及其对应uploadID
`,

Expand Down
4 changes: 2 additions & 2 deletions lib/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ var OptionMap = map[string]Option{
OptionACL: Option{"", "--acl", "", OptionTypeString, "", "", "acl信息的配置。", "acl information."},
OptionShortFormat: Option{"-s", "--short-format", "", OptionTypeFlagTrue, "", "", "显示精简格式,如果未指定该选项,默认显示长格式。", "Show by short format, if the option is not specified, show long format by default."},
OptionDirectory: Option{"-d", "--directory", "", OptionTypeFlagTrue, "", "", "返回当前目录下的文件和子目录,而非递归显示所有子目录下的所有object", "Return matching subdirectory names instead of contents of the subdirectory"},
OptionMultipart: Option{"-m", "--multipart", "", OptionTypeFlagTrue, "", "", "返回当前目录下的文件和子目录,而非递归显示所有子目录下的所有object", "Return matching subdirectory names instead of contents of the subdirectory"},
OptionAllType: Option{"-a", "--all-type", "", OptionTypeFlagTrue, "", "", "返回当前目录下的文件和子目录,而非递归显示所有子目录下的所有object", "Return matching subdirectory names instead of contents of the subdirectory"},
OptionMultipart: Option{"-m", "--multipart", "", OptionTypeFlagTrue, "", "", "返回当前目录下未completed的multipart及其对应uploadID,而非递归显示所有子目录下的所有", "Return matching subdirectory names instead of contents of the subdirectory"},
OptionAllType: Option{"-a", "--all-type", "", OptionTypeFlagTrue, "", "", "返回当前目录下的文件和子目录,而非递归显示所有子目录下的所有object和未completed的multipart", "Return matching subdirectory names instead of contents of the subdirectory"},
OptionRecursion: Option{"-r", "--recursive", "", OptionTypeFlagTrue, "", "", "递归进行操作。对于支持该选项的命令,当指定该选项时,命令会对bucket下所有符合条件的objects进行操作,否则只对url中指定的单个object进行操作。", "operate recursively, for those commands which support the option, when use them, if the option is specified, the command will operate on all match objects under the bucket, else we will search the specified object and operate on the single object."},
OptionBucket: Option{"-b", "--bucket", "", OptionTypeFlagTrue, "", "", "对bucket进行操作,该选项用于确认操作作用于bucket", "the option used to make sure the operation will operate on bucket"},
OptionForce: Option{"-f", "--force", "", OptionTypeFlagTrue, "", "", "强制操作,不进行询问提示。", "operate silently without asking user to confirm the operation."},
Expand Down

0 comments on commit 5323938

Please sign in to comment.