summaryrefslogtreecommitdiff
path: root/scripts/build-command-templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-18 21:53:35 +0100
committerChristian Breunig <christian@breunig.cc>2023-11-18 21:53:35 +0100
commitdcb277ba0aed4a02f48572d10d3ba242942b8639 (patch)
tree1a33b694f5a50b93adc2493750dc84f751b34b74 /scripts/build-command-templates
parent3cbc0a93f779882d133873c81b5b720f52e45975 (diff)
downloadvyos-1x-dcb277ba0aed4a02f48572d10d3ba242942b8639.tar.gz
vyos-1x-dcb277ba0aed4a02f48572d10d3ba242942b8639.zip
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://<user>:<passwd>@<host>/<path> https://<user>:<passwd>@<host>/<path> ftp://<user>:<passwd>@<host>/<path> sftp://<user>:<passwd>@<host>/<path> scp://<user>:<passwd>@<host>/<path> tftp://<user>:<passwd>@<host>/<path> git+https://<user>:<passwd>@<host>/<path>
Diffstat (limited to 'scripts/build-command-templates')
-rwxr-xr-xscripts/build-command-templates2
1 files changed, 2 insertions, 0 deletions
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: