diff options
author | Jean Delvare <jdelvare@suse.de> | 2005-06-23 21:46:39 +0000 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2005-06-23 21:46:39 +0000 |
commit | 322cec2c8724fc134daa7d1b93aa6e2183341c56 (patch) | |
tree | 32534fee960e582904a366b7982d8c46792ce142 /dmiopt.c | |
parent | fd8d7a801cbe6f3d4cbae2076bd61f906a7df2b8 (diff) | |
download | dmidecode-git-322cec2c8724fc134daa7d1b93aa6e2183341c56.tar.gz |
Options --dump and --string are mutually exclusive.
Diffstat (limited to 'dmiopt.c')
-rw-r--r-- | dmiopt.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; } |