提交 bb96fdcd 编写于 作者: D Davies Liu

update usage in README

上级 e1c2878e
...@@ -47,14 +47,14 @@ We use go mod to manage modules, if not sure how to use this, refer to [The offi ...@@ -47,14 +47,14 @@ We use go mod to manage modules, if not sure how to use this, refer to [The offi
``` ```
$ juicesync -h $ juicesync -h
NAME: NAME:
juicesync - Usage: juicesync [options] SRC DST juicesync - rsync for cloud storage
SRC and DST should be [NAME://][ACCESS_KEY:SECRET_KEY@]BUCKET.ENDPOINT[/PREFIX]
USAGE: USAGE:
juicesync [global options] command [command options] [arguments...] juicesync [options] SRC DST
SRC and DST should be [NAME://][ACCESS_KEY:SECRET_KEY@]BUCKET[.ENDPOINT][/PREFIX]
VERSION: VERSION:
v0.2.0-16-g6ab22e6 v0.5.0-1-gce9968c
COMMANDS: COMMANDS:
help, h Shows a list of commands or help for one command help, h Shows a list of commands or help for one command
...@@ -65,6 +65,7 @@ GLOBAL OPTIONS: ...@@ -65,6 +65,7 @@ GLOBAL OPTIONS:
--threads value, -p value number of concurrent threads (default: 10) --threads value, -p value number of concurrent threads (default: 10)
--http-port PORT HTTP PORT to listen to (default: 6070) --http-port PORT HTTP PORT to listen to (default: 6070)
--update, -u update existing file if the source is newer (default: false) --update, -u update existing file if the source is newer (default: false)
--force-update, -f always update existing file (default: false)
--perms preserve permissions (default: false) --perms preserve permissions (default: false)
--dirs Sync directories or holders (default: false) --dirs Sync directories or holders (default: false)
--dry don't copy file (default: false) --dry don't copy file (default: false)
...@@ -72,6 +73,8 @@ GLOBAL OPTIONS: ...@@ -72,6 +73,8 @@ GLOBAL OPTIONS:
--delete-dst, --deleteDst delete extraneous objects from destination (default: false) --delete-dst, --deleteDst delete extraneous objects from destination (default: false)
--exclude PATTERN exclude keys containing PATTERN (POSIX regular expressions) --exclude PATTERN exclude keys containing PATTERN (POSIX regular expressions)
--include PATTERN only include keys containing PATTERN (POSIX regular expressions) --include PATTERN only include keys containing PATTERN (POSIX regular expressions)
--manager value manager address
--worker value hosts (seperated by comma) to launch worker
--verbose, -v turn on debug log (default: false) --verbose, -v turn on debug log (default: false)
--quiet, -q change log level to ERROR (default: false) --quiet, -q change log level to ERROR (default: false)
--help, -h show help (default: false) --help, -h show help (default: false)
......
...@@ -137,8 +137,10 @@ func main() { ...@@ -137,8 +137,10 @@ func main() {
app := cli.NewApp() app := cli.NewApp()
app.Name = versioninfo.NAME app.Name = versioninfo.NAME
app.Usage = versioninfo.USAGE app.Usage = "rsync for cloud storage"
app.UsageText = versioninfo.USAGE
app.Version = versioninfo.VERSION app.Version = versioninfo.VERSION
app.Copyright = "AGPLv3"
app.Flags = []cli.Flag{ app.Flags = []cli.Flag{
&cli.StringFlag{ &cli.StringFlag{
Name: "start", Name: "start",
......
...@@ -7,7 +7,7 @@ var ( ...@@ -7,7 +7,7 @@ var (
VERSION = "unknown" VERSION = "unknown"
REVISION = "HEAD" REVISION = "HEAD"
REVISIONDATE = "now" REVISIONDATE = "now"
USAGE = `Usage: juicesync [options] SRC DST USAGE = `juicesync [options] SRC DST
SRC and DST should be [NAME://][ACCESS_KEY:SECRET_KEY@]BUCKET[.ENDPOINT][/PREFIX]` SRC and DST should be [NAME://][ACCESS_KEY:SECRET_KEY@]BUCKET[.ENDPOINT][/PREFIX]`
) )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册