summaryrefslogtreecommitdiff
path: root/util/nvramtool/opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/nvramtool/opts.c')
-rw-r--r--util/nvramtool/opts.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/nvramtool/opts.c b/util/nvramtool/opts.c
index 9aaeedfbfd..49496495eb 100644
--- a/util/nvramtool/opts.c
+++ b/util/nvramtool/opts.c
@@ -41,7 +41,7 @@ static void register_op_modifier(nvramtool_op_modifier_t mod, char mod_param[]);
static void resolve_op_modifiers(void);
static void sanity_check_args(void);
-static const char getopt_string[] = "-ab:B:c::C:de:hil::np:r:tvw:xX:y:Y";
+static const char getopt_string[] = "-ab:B:c::C:dD:e:hil::np:r:tvw:xX:y:Y";
/****************************************************************************
* parse_nvramtool_args
@@ -89,6 +89,10 @@ void parse_nvramtool_args(int argc, char *argv[])
case 'd':
register_op(&op_found, NVRAMTOOL_OP_LBTABLE_DUMP, NULL);
break;
+ case 'D':
+ register_op_modifier(NVRAMTOOL_MOD_USE_CMOS_FILE,
+ optarg);
+ break;
case 'e':
register_op(&op_found, NVRAMTOOL_OP_SHOW_PARAM_VALUES,
optarg);