cmd/uplinkng: fix flag/error messages

This change fixes some small issues with flag descriptions
and error messages.

Change-Id: I74a669d2566bf51ad871f16d64a92984ae75e712
This commit is contained in:
Michał Niewrzał 2022-01-04 15:50:14 +01:00 committed by Michal Niewrzal
parent 4f96a85642
commit 6bbe2fc692
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ func (c *cmdCp) Setup(params clingy.Parameters) {
clingy.Transform(strconv.Atoi),
clingy.Transform(func(n int) (int, error) {
if n <= 0 {
return 0, errs.New("parallelism must be at least 1")
return 0, errs.New("transfers must be at least 1")
}
return n, nil
}),
@ -73,7 +73,7 @@ func (c *cmdCp) Setup(params clingy.Parameters) {
clingy.Transform(strconv.Atoi),
clingy.Transform(func(n int) (int, error) {
if n <= 0 {
return 0, errs.New("file parallelism must be at least 1")
return 0, errs.New("parallelism must be at least 1")
}
return n, nil
}),

View File

@ -40,7 +40,7 @@ func (c *cmdRm) Setup(params clingy.Parameters) {
clingy.Short('r'),
clingy.Transform(strconv.ParseBool), clingy.Boolean,
).(bool)
c.parallelism = params.Flag("parallelism", "Controls how many uploads/downloads to perform in parallel", 1,
c.parallelism = params.Flag("parallelism", "Controls how many removes to perform in parallel", 1,
clingy.Short('p'),
clingy.Transform(strconv.Atoi),
clingy.Transform(func(n int) (int, error) {