Display user-friendly message for control shards set-mode when mode is omitted #8

Closed
opened 2023-01-09 15:10:50 +00:00 by vkarak1 · 0 comments
vkarak1 commented 2023-01-09 15:10:50 +00:00 (Migrated from github.com)

Could you please update the code to display clear and user-friendly message in case if mode is omitted in the control shards set-mode command?

Expected Behavior

root@az:/home/service# neofs-cli control shards set-mode --clear-errors --all -w wallet.json --endpoint  localhost:8091
Enter password >
Error: required flag(s) "mode" not set

or something like that

Current Behavior

root@az:/home/service# neofs-cli control shards set-mode --clear-errors --all -w wallet.json --endpoint  localhost:8091
Enter password >
unsupported mode

Your Environment

NeoFS Storage node
Version: v0.34.0-144-g7c3ab4d1-dirty
GoVersion: go1.18.4
Could you please update the code to display clear and user-friendly message in case if `mode` is omitted in the `control shards set-mode` command? ## Expected Behavior ``` root@az:/home/service# neofs-cli control shards set-mode --clear-errors --all -w wallet.json --endpoint localhost:8091 Enter password > Error: required flag(s) "mode" not set ``` or something like that ## Current Behavior ``` root@az:/home/service# neofs-cli control shards set-mode --clear-errors --all -w wallet.json --endpoint localhost:8091 Enter password > unsupported mode ``` ## Your Environment ``` NeoFS Storage node Version: v0.34.0-144-g7c3ab4d1-dirty GoVersion: go1.18.4 ```
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#8
There is no content yet.