packages: roms: boot: add --help option.

The resources/packages/roms/boot script already work with the "help"
argument, however most of the other scripts use --help, so for
consistency we need to add --help as well.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Adrien Bourmault <neox@gnu.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2024-08-17 12:01:12 +02:00 committed by Adrien Bourmault
parent 6721094e10
commit d0028b81ed
Signed by: neox
GPG Key ID: 57BC26A3687116F6
1 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,10 @@ buildrom() {
if [ $# -gt 0 ]; then if [ $# -gt 0 ]; then
firstoption="${1}" firstoption="${1}"
if [ "${firstoption}" = "--help" ]; then
help
exit 0
fi
if [ "${firstoption}" = "help" ]; then if [ "${firstoption}" = "help" ]; then
help help
exit 0 exit 0