]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
scripts/install-buildtools: preserve formatting in the help message
authorAleksandar Nikolic <aleksandar.nikolic@zeiss.com>
Thu, 5 Dec 2024 10:51:37 +0000 (11:51 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Dec 2024 09:17:50 +0000 (09:17 +0000)
Use the RawTextHelpFormatter formatter to preserve formatting in the
argpars help message.

Signed-off-by: Aleksandar Nikolic <aleksandar.nikolic@zeiss.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/install-buildtools

index 6387287ade865a072cc2263146e1a0c15f70913b..4618d6a3ac6a2cc326251d4f3fca2ffd19514d00 100755 (executable)
@@ -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'