mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcd: move server/usage.go to etcd/v2_usage.go
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
package server
|
package etcd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
1
main.go
1
main.go
@@ -18,6 +18,7 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
var config = config.New()
|
var config = config.New()
|
||||||
if err := config.Load(os.Args[1:]); err != nil {
|
if err := config.Load(os.Args[1:]); err != nil {
|
||||||
|
fmt.Println(etcd.Usage() + "\n")
|
||||||
fmt.Println(err.Error(), "\n")
|
fmt.Println(err.Error(), "\n")
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
} else if config.ShowVersion {
|
} else if config.ShowVersion {
|
||||||
|
|||||||
Reference in New Issue
Block a user