Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/webdav: fix webdav flag #3156

Merged
merged 2 commits into from
Jan 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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