Pārlūkot izejas kodu

etcdmain: Add max-snapshots and max-wals to help

Based on the configuration doc, seems these two flags are missing
in the help. So add them and the descriptions are from config.go in
the same directory.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Yiqiao Pu 10 gadi atpakaļ
vecāks
revīzija
ddc4f8bd45
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      etcdmain/help.go

+ 6 - 0
etcdmain/help.go

@@ -14,6 +14,8 @@
 
 
 package etcdmain
 package etcdmain
 
 
+import "strconv"
+
 var (
 var (
 	usageline = `usage: etcd [flags]
 	usageline = `usage: etcd [flags]
        start an etcd server
        start an etcd server
@@ -43,6 +45,10 @@ member flags:
 		list of URLs to listen on for peer traffic.
 		list of URLs to listen on for peer traffic.
 	--listen-client-urls 'http://localhost:2379,http://localhost:4001'
 	--listen-client-urls 'http://localhost:2379,http://localhost:4001'
 		list of URLs to listen on for client traffic.
 		list of URLs to listen on for client traffic.
+	--max-snapshots '` + strconv.Itoa(defaultMaxSnapshots) + `'
+		maximum number of snapshot files to retain (0 is unlimited).
+	--max-wals '` + strconv.Itoa(defaultMaxWALs) + `'
+		maximum number of wal files to retain (0 is unlimited).
 	-cors ''
 	-cors ''
 		comma-separated whitelist of origins for CORS (cross-origin resource sharing).
 		comma-separated whitelist of origins for CORS (cross-origin resource sharing).