summaryrefslogtreecommitdiff
path: root/dmiopt.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2005-06-23 21:46:39 +0000
committerJean Delvare <jdelvare@suse.de>2005-06-23 21:46:39 +0000
commit322cec2c8724fc134daa7d1b93aa6e2183341c56 (patch)
tree32534fee960e582904a366b7982d8c46792ce142 /dmiopt.c
parentfd8d7a801cbe6f3d4cbae2076bd61f906a7df2b8 (diff)
downloaddmidecode-git-322cec2c8724fc134daa7d1b93aa6e2183341c56.tar.gz
Options --dump and --string are mutually exclusive.
Diffstat (limited to 'dmiopt.c')
-rw-r--r--dmiopt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dmiopt.c b/dmiopt.c
index 3a29ac1..8761ec5 100644
--- a/dmiopt.c
+++ b/dmiopt.c
@@ -276,7 +276,13 @@ int parse_command_line(int argc, char * const argv[])
if(opt.type!=NULL && opt.string_offset)
{
- fprintf(stderr, "String and type modes are mutually exclusive\n");
+ fprintf(stderr, "Options --string and --type are mutually exclusive\n");
+ return -1;
+ }
+
+ if((opt.flags & FLAG_DUMP) && opt.string_offset)
+ {
+ fprintf(stderr, "Options --string and --dump are mutually exclusive\n");
return -1;
}