Browse Source

etcd: move server/usage.go to etcd/v2_usage.go

Xiang Li 11 years ago
parent
commit
44836d9099
2 changed files with 2 additions and 1 deletions
  1. 1 1
      etcd/v2_usage.go
  2. 1 0
      main.go

+ 1 - 1
server/usage.go → etcd/v2_usage.go

@@ -1,4 +1,4 @@
-package server
+package etcd
 
 
 import (
 import (
 	"strings"
 	"strings"

+ 1 - 0
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 {