summaryrefslogtreecommitdiff
path: root/vpdopt.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2005-10-04 16:17:01 +0000
committerJean Delvare <jdelvare@suse.de>2005-10-04 16:17:01 +0000
commit8953549ddf7331c54289dde19937fe82b1d2cc4a (patch)
tree614957657ceb2a021fb31072da0b0c04cb41e55b /vpdopt.c
parenta69418f169525d69dd2b7a10eb342d949c41ec41 (diff)
downloaddmidecode-git-8953549ddf7331c54289dde19937fe82b1d2cc4a.tar.gz
Display the list of all valid string keywords when --string, is used
without an argument or with an invalid one.
Diffstat (limited to 'vpdopt.c')
-rw-r--r--vpdopt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vpdopt.c b/vpdopt.c
index 4ebb892..87d7676 100644
--- a/vpdopt.c
+++ b/vpdopt.c
@@ -122,6 +122,13 @@ int parse_command_line(int argc, char * const argv[])
opt.flags|=FLAG_VERSION;
break;
case '?':
+ switch(optopt)
+ {
+ case 's':
+ fprintf(stderr, "String keyword expected\n");
+ print_opt_string_list();
+ break;
+ }
return -1;
}