diff options
| author | Aleksandar Nikolic <aleksandar.nikolic@zeiss.com> | 2024-12-05 11:51:37 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-09 15:23:28 +0000 |
| commit | 6074281e43f57aa4654eed311559a73b65a94a45 (patch) | |
| tree | f9a803791cb36c9469c742806f3e0e18e598406b /scripts/install-buildtools | |
| parent | cf2680306d4d47d972b3d45a0ff2e911bc050c3c (diff) | |
| download | poky-6074281e43f57aa4654eed311559a73b65a94a45.tar.gz | |
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>
Diffstat (limited to 'scripts/install-buildtools')
| -rwxr-xr-x | scripts/install-buildtools | 3 |
1 files changed, 2 insertions, 1 deletions
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(): | |||
| 127 | 127 | ||
| 128 | parser = argparse.ArgumentParser( | 128 | parser = argparse.ArgumentParser( |
| 129 | description="Buildtools installation helper", | 129 | description="Buildtools installation helper", |
| 130 | add_help=False) | 130 | add_help=False, |
| 131 | formatter_class=argparse.RawTextHelpFormatter) | ||
| 131 | parser.add_argument('-u', '--url', | 132 | parser.add_argument('-u', '--url', |
| 132 | help='URL from where to fetch buildtools SDK installer, not ' | 133 | help='URL from where to fetch buildtools SDK installer, not ' |
| 133 | 'including filename (optional)\n' | 134 | 'including filename (optional)\n' |
