Skip to content

Commit

Permalink
neofs-adm: fix displaying values and improve documentation (#2577)
Browse files Browse the repository at this point in the history
Closes #2555.
  • Loading branch information
roman-khimov authored Sep 21, 2023
2 parents bb9256f + fe69589 commit 4fdec62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog for NeoFS Node
## [Unreleased]

### Fixed
- `neofs-cli netmap netinfo` documentation (#2555)

### Changed
- FSTree storage now uses more efficient and safe temporary files under Linux (#2566)
Expand Down
3 changes: 3 additions & 0 deletions cmd/neofs-adm/internal/modules/morph/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ var (
Use: "set-config key1=val1 [key2=val2 ...]",
DisableFlagsInUseLine: true,
Short: "Add/update global config value in the NeoFS network",
Long: `Add/update global config value in the NeoFS network.
If key is unknown, it will be added to the config only with --force flag.
Values for unknown keys are added exactly the way they're provided, no conversion is made ("123" will be stored as "313233" hexadecimal).`,
PreRun: func(cmd *cobra.Command, _ []string) {
_ = viper.BindPFlag(alphabetWalletsFlag, cmd.Flags().Lookup(alphabetWalletsFlag))
_ = viper.BindPFlag(endpointFlag, cmd.Flags().Lookup(endpointFlag))
Expand Down
5 changes: 3 additions & 2 deletions cmd/neofs-cli/modules/netmap/netinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ import (
var netInfoCmd = &cobra.Command{
Use: "netinfo",
Short: "Get information about NeoFS network",
Long: "Get information about NeoFS network",
Args: cobra.NoArgs,
Long: `Get information about NeoFS network.
Unknown configuration settings are displayed in hexadecimal format.`,
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, _ []string) {
ctx, cancel := commonflags.GetCommandContext(cmd)
defer cancel()
Expand Down

0 comments on commit 4fdec62

Please sign in to comment.