summaryrefslogtreecommitdiff
path: root/dmiopt.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-03-15 15:11:53 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-03-15 15:11:53 +0100
commitdb1a6f51c433843eb5d59a564d080b043ad4c46b (patch)
treefd5af76ae152493f02afeb360c6cf206b81333bc /dmiopt.c
parentabf98f6ec0ce25c284fbe71bdd56571ea7df5672 (diff)
parent69e8c5b5339d256e8973c536926d2ecc9b1b86fc (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'dmiopt.c')
-rw-r--r--dmiopt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dmiopt.c b/dmiopt.c
index d08288f..fa84f22 100644
--- a/dmiopt.c
+++ b/dmiopt.c
@@ -270,6 +270,7 @@ int parse_command_line(int argc, char * const argv[])
{ "dev-mem", required_argument, NULL, 'd' },
{ "help", no_argument, NULL, 'h' },
{ "quiet", no_argument, NULL, 'q' },
+ { "no-quirks", no_argument, NULL, 'Q' },
{ "string", required_argument, NULL, 's' },
{ "type", required_argument, NULL, 't' },
{ "dump", no_argument, NULL, 'u' },
@@ -302,6 +303,9 @@ int parse_command_line(int argc, char * const argv[])
case 'q':
opt.flags |= FLAG_QUIET;
break;
+ case 'Q':
+ opt.flags |= FLAG_NO_QUIRKS;
+ break;
case 's':
if (parse_opt_string(optarg) < 0)
return -1;
@@ -371,6 +375,7 @@ void print_help(void)
" -d, --dev-mem FILE Read memory from device FILE (default: " DEFAULT_MEM_DEV ")\n"
" -h, --help Display this help text and exit\n"
" -q, --quiet Less verbose output\n"
+ " --no-quirks Decode everything without quirks\n"
" -s, --string KEYWORD Only display the value of the given DMI string\n"
" -t, --type TYPE Only display the entries of given type\n"
" -H, --handle HANDLE Only display the entry of given handle\n"