Skip to content

use simpler, less error-prone option parsing; update man pages & add man page for smart-log-add#26

Closed
kaoudis wants to merge 3 commits intolinux-nvme:masterfrom
kaoudis:master
Closed

use simpler, less error-prone option parsing; update man pages & add man page for smart-log-add#26
kaoudis wants to merge 3 commits intolinux-nvme:masterfrom
kaoudis:master

Conversation

@kaoudis
Copy link
Contributor

@kaoudis kaoudis commented Aug 12, 2015

Argconfig was simultaneously more powerful and more bug-prone, even after some intense bug chasing, than needed for nvme sub-commands currently part of the application. Therefore, simply use getopt_long_only (since this was the only part of the argconfig_parse function code we were really using, anyway).

Add a small 'help' function to replace the used parts of the argconfig_print_help function. Put the rest of the help information into the man pages, update all man pages and add one for smart-log-add (which didn't have a manpage yet).

Also, update zsh tab completion strings (completions/_nvme) since they were slightly out of sync with the man pages.

Let me know if anything should be changed :)

@keithbusch
Copy link
Contributor

This fell off my radar ...

I think we should stick with the parser we're using, but it'd certainly be nice if it was simpler to setup. Lots of structures to define with rigid relations among structures, and duplicating entries for short and long opts is a bit annoying. Macro magic will help.

@keithbusch keithbusch closed this Feb 26, 2016
ikegami-t referenced this pull request in ikegami-t/nvme-cli Aug 18, 2023
jimmunn pushed a commit to Micron-TPG-OSS/nvme-cli that referenced this pull request Feb 23, 2026
* add tests kdoc and uuid

* Update libnvme/scripts/kernel-doc-check.ps1 no perl found error message

Co-authored-by: Broc Going <bgoing@micron.com>

---------

Co-authored-by: Broc Going <bgoing@micron.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants