cgpt: add LIST/ALL debug options

Improve the debug command to accept two new subcommands "LIST" and
"ALL".  "LIST" dumps all the layouts that are supported.  "ALL" dumps
all layouts in one go.  This makes it a lot easier to look at all the
settings at once without having to manually type in the layouts.

BUG=None
TEST=`./build_library/cgpt.py debug ../overlays/overlay-ninja/scripts/disk_layout.json ALL` shows everything useful

Change-Id: Ibe71d4310dafbd55cb69d85e5a7a431b490d3904
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/1790437
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Michael Mortensen <mmortensen@google.com>
1 file changed