]> git.ipfire.org Git - thirdparty/u-boot.git/commit
command: Introduce functions to obtain command arguments
authorSimon Glass <sjg@chromium.org>
Sat, 18 Nov 2023 21:05:20 +0000 (14:05 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 16:51:24 +0000 (11:51 -0500)
commit8632b36b96d38a85f2e71603a6f90ec9e4e5e37e
tree90955cdb3d121e37567fe4226f9862566220af57
parent1047b5340c1203f825c0a68b33997b787be0123e
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>
boot/bootm.c
cmd/booti.c
cmd/bootz.c
cmd/disk.c
cmd/fuse.c
cmd/mmc.c
drivers/misc/gsc.c
fs/fs.c
include/command.h
test/cmd_ut.c