diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-06-21 22:35:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 22:35:43 +0200 |
commit | 69ad00f3e589a1d6d17ef02c884c0ba0d9cf6b66 (patch) | |
tree | f422a16e27499c8f4c86a2ea2e4063f07b8bd5c6 /scripts/build-command-templates | |
parent | 32df4dc8fbd28115c0c3fa7f529db9377fdfe8b5 (diff) | |
parent | 6ffda0ee36db8f23d022119b5a532863fad4fbf2 (diff) | |
download | vyos-1x-69ad00f3e589a1d6d17ef02c884c0ba0d9cf6b66.tar.gz vyos-1x-69ad00f3e589a1d6d17ef02c884c0ba0d9cf6b66.zip |
Merge pull request #1366 from c-po/t1748-cli-help
vbash: beautify tab completion output/line breaks
Diffstat (limited to 'scripts/build-command-templates')
-rwxr-xr-x | scripts/build-command-templates | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build-command-templates b/scripts/build-command-templates index 729fc864c..c8ae83d9d 100755 --- a/scripts/build-command-templates +++ b/scripts/build-command-templates @@ -27,6 +27,7 @@ import copy import functools from lxml import etree as ET +from textwrap import fill # Defaults @@ -130,6 +131,7 @@ def get_properties(p, default=None): # DNS forwarding for instance has multiple defaults - specified as whitespace separated list tmp = ', '.join(default.text.split()) help += f' (default: {tmp})' + help = fill(help, width=64, subsequent_indent='\t\t\t') props["help"] = help except: pass |