diff mbox series

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

Message ID 20241205105137.9639-1-an010@live.com
State Accepted, archived
Commit ee94d7f99ff3c7e922fdb502fabbda3fd0cd8700
Headers show
Series scripts/install-buildtools: preserve formatting in the help message | expand

Commit Message

Aleksandar Nikolic Dec. 5, 2024, 10:51 a.m. UTC
From: Aleksandar Nikolic <aleksandar.nikolic@zeiss.com>

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

Signed-off-by: Aleksandar Nikolic <aleksandar.nikolic@zeiss.com>
---
 scripts/install-buildtools | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/scripts/install-buildtools b/scripts/install-buildtools
index 6387287ade..4618d6a3ac 100755
--- a/scripts/install-buildtools
+++ b/scripts/install-buildtools
@@ -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'