Skip to content

Commit

Permalink
cli: add a default range for object hash to cli help
Browse files Browse the repository at this point in the history
Closes #1693.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
  • Loading branch information
End-rey committed Oct 28, 2024
1 parent 1b2a229 commit 4a753f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/neofs-cli/modules/object/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func initObjectHashCmd() {
flags.String(commonflags.OIDFlag, "", commonflags.OIDFlagUsage)
_ = objectHashCmd.MarkFlagRequired(commonflags.OIDFlag)

flags.String("range", "", "Range to take hash from in the form offset1:length1,...")
flags.String("range", "", "Range to take hash from in the form offset1:length1,... Full object payload length if not specified")

Check warning on line 45 in cmd/neofs-cli/modules/object/hash.go

View check run for this annotation

Codecov / codecov/patch

cmd/neofs-cli/modules/object/hash.go#L45

Added line #L45 was not covered by tests
flags.String("type", hashSha256, "Hash type. Either 'sha256' or 'tz'")
flags.String(getRangeHashSaltFlag, "", "Salt in hex format")
}
Expand Down

0 comments on commit 4a753f0

Please sign in to comment.