download: Add --help in the individual download scripts

This doesn't change the existing usage of the scripts:
- For the Coreboot script, before this change, all arguments that were
  passed were considered as board to download the Coreboot source code
  for.

  Here we added the '--help' and '--list-boards' arguments, so it
  should not be an issue as it is extremely unlikely that a board
  would be called '--help' or '--list-boards'.

- All the other scripts don't use any arguments so passing --help
  should not conflict with the existing usage.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
This commit is contained in:
Denis 'GNUtoo' Carikli
2022-02-16 14:04:16 +01:00
parent 4b2d426a20
commit 2bb805e2e0
7 changed files with 124 additions and 0 deletions
+3
View File
@@ -60,6 +60,9 @@ help() {
coreboot trees by default, but './download coreboot x60' will only download
the coreboot tree required for the target: x60
Each program download script should also accept the --help paramater to
display the usage of the script.
Refer to the documentation for more information.
EOF
}