Skip to content

Commit

Permalink
cmd/webdav: fix webdav flag (#3156)
Browse files Browse the repository at this point in the history
* fix webdav flag
  • Loading branch information
zhijian-pro authored Jan 6, 2023
1 parent 4b2b0e7 commit f425c2e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cmd/webdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import (
func cmdWebDav() *cli.Command {
selfFlags := []cli.Flag{
&cli.StringFlag{
Name: "certFile",
Name: "cert-file",
Usage: "certificate file for https",
},
&cli.StringFlag{
Name: "keyFile",
Name: "key-file",
Usage: "key file for https",
},
&cli.BoolFlag{
Expand Down Expand Up @@ -83,8 +83,8 @@ func webdav(c *cli.Context) error {
EnableGzip: c.Bool("gzip"),
Username: os.Getenv("WEBDAV_USER"),
Password: os.Getenv("WEBDAV_PASSWORD"),
CertFile: c.String("certFile"),
KeyFile: c.String("keyFile"),
CertFile: c.String("cert-file"),
KeyFile: c.String("key-file"),
})
return jfs.Meta().CloseSession()
}
4 changes: 2 additions & 2 deletions docs/en/reference/command_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,10 @@ file entry cache timeout in seconds (default: 0), read [Kernel Metadata Cache](.
`--dir-entry-cache value`<br />
dir entry cache timeout in seconds (default: 1), read [Kernel Metadata Cache](../guide/cache_management.md#kernel-metadata-cache)

`--certFile`<br />
`--cert-file`<br />
certificate file for HTTPS

`--keyFile`<br />
`--key-file`<br />
key file for HTTPS

`--gzip`<br />
Expand Down
4 changes: 2 additions & 2 deletions docs/zh_cn/reference/command_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,10 @@ juicefs webdav [command options] META-URL ADDRESS
`--dir-entry-cache value`<br />
目录项缓存过期时间;单位为秒 (默认:1)。详见[「内核元数据缓存」](../guide/cache_management.md#kernel-metadata-cache)

`--certFile`<br />
`--cert-file`<br />
HTTPS 证书文件

`--keyFile`<br />
`--key-file`<br />
HTTPS 密钥文件

`--gzip`<br />
Expand Down

0 comments on commit f425c2e

Please sign in to comment.