scripts/install-buildtools: preserve formatting in the help message

Use the RawTextHelpFormatter formatter to preserve formatting in the
argpars help message.

(From OE-Core rev: ee94d7f99ff3c7e922fdb502fabbda3fd0cd8700)

Signed-off-by: Aleksandar Nikolic <aleksandar.nikolic@zeiss.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Aleksandar Nikolic 2024-12-05 11:51:37 +01:00 committed by Richard Purdie
parent cf2680306d
commit 6074281e43

View File

@ -127,7 +127,8 @@ def main():
parser = argparse.ArgumentParser(
description="Buildtools installation helper",
add_help=False)
add_help=False,
formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('-u', '--url',
help='URL from where to fetch buildtools SDK installer, not '
'including filename (optional)\n'