From b7acaf177c686ce93e61c08a173877ff97972d69 Mon Sep 17 00:00:00 2001 From: wzshiming Date: Thu, 11 Jul 2019 23:08:27 +0800 Subject: [PATCH] Fix the usage of example (#71) * Fix the usage of example * update readme --- exampleftpd/README.md | 2 +- exampleftpd/exampleftpd.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exampleftpd/README.md b/exampleftpd/README.md index 08b8f48..a06997c 100644 --- a/exampleftpd/README.md +++ b/exampleftpd/README.md @@ -8,7 +8,7 @@ Change to this directory then build it with `go build` $ ./exampleftpd -h Usage of ./exampleftpd: -host string - Port (default "localhost") + Host (default "localhost") -pass string Password for login (default "123456") -port int diff --git a/exampleftpd/exampleftpd.go b/exampleftpd/exampleftpd.go index 9b7400a..9ff191b 100644 --- a/exampleftpd/exampleftpd.go +++ b/exampleftpd/exampleftpd.go @@ -20,7 +20,7 @@ func main() { user = flag.String("user", "admin", "Username for login") pass = flag.String("pass", "123456", "Password for login") port = flag.Int("port", 2121, "Port") - host = flag.String("host", "localhost", "Port") + host = flag.String("host", "localhost", "Host") ) flag.Parse() if *root == "" {