Fix incomplete usage on tunasynctl set-size

This commit is contained in:
Miao Wang 2022-12-12 00:14:05 +08:00 committed by GitHub
parent c07aaffe65
commit 60f92ceebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ func listJobs(c *cli.Context) error {
func updateMirrorSize(c *cli.Context) error { func updateMirrorSize(c *cli.Context) error {
args := c.Args() args := c.Args()
if len(args) != 2 { if len(args) != 2 {
return cli.NewExitError("Usage: tunasynctl -w <worker-id> <mirror> <size>", 1) return cli.NewExitError("Usage: tunasynctl set-size -w <worker-id> <mirror> <size>", 1)
} }
workerID := c.String("worker") workerID := c.String("worker")
mirrorID := args.Get(0) mirrorID := args.Get(0)