diff --git a/cmd/webdav.go b/cmd/webdav.go
index 1294d24b1967..75606043b6fc 100644
--- a/cmd/webdav.go
+++ b/cmd/webdav.go
@@ -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{
@@ -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()
}
diff --git a/docs/en/reference/command_reference.md b/docs/en/reference/command_reference.md
index 557728a4c0b4..a5a51b4e75a3 100644
--- a/docs/en/reference/command_reference.md
+++ b/docs/en/reference/command_reference.md
@@ -581,10 +581,10 @@ file entry cache timeout in seconds (default: 0), read [Kernel Metadata Cache](.
`--dir-entry-cache value`
dir entry cache timeout in seconds (default: 1), read [Kernel Metadata Cache](../guide/cache_management.md#kernel-metadata-cache)
-`--certFile`
+`--cert-file`
certificate file for HTTPS
-`--keyFile`
+`--key-file`
key file for HTTPS
`--gzip`
diff --git a/docs/zh_cn/reference/command_reference.md b/docs/zh_cn/reference/command_reference.md
index 879020f50f99..9c200b3c8903 100644
--- a/docs/zh_cn/reference/command_reference.md
+++ b/docs/zh_cn/reference/command_reference.md
@@ -581,10 +581,10 @@ juicefs webdav [command options] META-URL ADDRESS
`--dir-entry-cache value`
目录项缓存过期时间;单位为秒 (默认:1)。详见[「内核元数据缓存」](../guide/cache_management.md#kernel-metadata-cache)
-`--certFile`
+`--cert-file`
HTTPS 证书文件
-`--keyFile`
+`--key-file`
HTTPS 密钥文件
`--gzip`