Skip to contentSkip to conversation

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

PATCH New Aleksandar Nikolic 1 participant 1 message Dec 5, 2024

lore
Share & tools
lore
#0 lore raw

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

From: Aleksandar Nikolic <[email protected]>

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

---
 scripts/install-buildtools | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/install-buildtools +2 -1
index 6387287ade..4618d6a3ac 100755
@@ -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'
Signature · 1 line
2.25.1