yanglint FEATURE hints for option arguments
... and also completion if prefix is also specified.
diff --git a/tools/lint/cmd_list.c b/tools/lint/cmd_list.c
index ec7a021..77b3ec4 100644
--- a/tools/lint/cmd_list.c
+++ b/tools/lint/cmd_list.c
@@ -55,7 +55,7 @@
goto cleanup;
}
- while ((opt = getopt_long(argc, argv, "f:h", options, &opt_index)) != -1) {
+ while ((opt = getopt_long(argc, argv, commands[CMD_LIST].optstring, options, &opt_index)) != -1) {
switch (opt) {
case 'f': /* --format */
if (!strcasecmp(optarg, "xml")) {