-
Notifications
You must be signed in to change notification settings - Fork 695
nvme: add output-format-version option #2796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
nvme-print-json.c
Outdated
| obj_add_str(obj_iocsc, "NVM Command Set", nvmcs ? "Selected" : "Not selected"); | ||
| } | ||
|
|
||
| static bool human(void) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While at it, we should rename the function, maybe verbose_mode or something similar.
| OPT_SHRT("dir-spec", 'S', &cfg.dspec, dspec_w_dtype), | ||
| OPT_BYTE("dir-oper", 'O', &cfg.doper, doper), | ||
| OPT_SHRT("endir", 'e', &cfg.endir, endir), | ||
| OPT_FLAG("human-readable", 'H', &cfg.human_readable, human_readable_directive), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best leave it the option around, just to avoid to break anyone. Couldn't we map it to verbose mode ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But if there is no user left, just leave the option. You could add a help text like deprecated; does nothing
|
Looks really good. Thanks a lot! |
The JSON outputs changed to verbose by the format version 2. Signed-off-by: Tokunori Ikegami <[email protected]>
Since the option is not used by the command actually. Signed-off-by: Tokunori Ikegami <[email protected]>
cc113a1 to
7690a7c
Compare
|
Fixed the commits as suggested. Thank you. |
|
Thanks! Maybe we should also update the documentation on |
Noted so will do later. Thank you. |
The JSON outputs changed to verbose by the format version 2.