mirror of
https://xff.cz/git/u-boot/
synced 2025-09-28 22:11:16 +02:00
command: Introduce functions to obtain command arguments
Add some functions which provide an argument to a command, or NULL if the argument does not exist. Use the same numbering as argv[] since it seems less confusing than the previous idea. Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -45,7 +45,7 @@ int cmd_ut_category(const char *name, const char *prefix,
|
||||
}
|
||||
|
||||
ret = ut_run_list(name, prefix, tests, n_ents,
|
||||
argc > 1 ? argv[1] : NULL, runs_per_text, force_run,
|
||||
cmd_arg1(argc, argv), runs_per_text, force_run,
|
||||
test_insert);
|
||||
|
||||
return ret ? CMD_RET_FAILURE : 0;
|
||||
|
Reference in New Issue
Block a user