MCPcopy Create free account
hub / github.com/coreboot/coreboot / sanity_check_args

Function sanity_check_args

util/nvramtool/cli/opts.c:232–237  ·  view source on GitHub ↗

* sanity_check_args * * Perform sanity checking on command line arguments. ****************************************************************************/

Source from the content-addressed store, hash-verified

230 * Perform sanity checking on command line arguments.
231 ****************************************************************************/
232static void sanity_check_args(void)
233{
234 if ((nvramtool_op_modifiers[NVRAMTOOL_MOD_SHOW_VALUE_ONLY].found) &&
235 (nvramtool_op.op != NVRAMTOOL_OP_CMOS_SHOW_ONE_PARAM))
236 usage(stderr);
237}

Callers 1

parse_nvramtool_argsFunction · 0.85

Calls 1

usageFunction · 0.50

Tested by

no test coverage detected