From e6c1f1ed512e969ff3d4b11692e35b4d0293c3eb Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 18 Nov 2023 21:53:35 +0100 Subject: config-mgmt: T4957: T2405: add proper valueHelp strings for remote URL vyos@vyos# set system config-management commit-archive location Possible completions: uri Uniform Resource Identifier Unfortunately URI is a bit "less" specific - add proper help strings: vyos@vyos# set system config-management commit-archive location Possible completions: http://:@/ https://:@/ ftp://:@/ sftp://:@/ scp://:@/ tftp://:@/ git+https://:@/ (cherry picked from commit dcb277ba0aed4a02f48572d10d3ba242942b8639) --- scripts/build-command-templates | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/build-command-templates') diff --git a/scripts/build-command-templates b/scripts/build-command-templates index c8ae83d9d..2e7f8b994 100755 --- a/scripts/build-command-templates +++ b/scripts/build-command-templates @@ -145,6 +145,8 @@ def get_properties(p, default=None): description = v.find("description").text if default != None and default.text == format: description += f' (default)' + # Is no description was specified, keep it empty + if not description: description = '' vh.append( (format, description) ) props["val_help"] = vh except: -- cgit v1.2.3