mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 02:04:17 +00:00
docs: show aliases for settings in man nm-settings-nmcli
This commit is contained in:
parent
3347278799
commit
125cbf5737
|
@ -33,10 +33,14 @@ main (int argc, char *argv[])
|
|||
g_print ("<nm-setting-docs>\n");
|
||||
for (i_sett_infos = 0; i_sett_infos < G_N_ELEMENTS (nm_meta_setting_infos_editor); i_sett_infos++) {
|
||||
const NMMetaSettingInfoEditor *sett_info = &nm_meta_setting_infos_editor[i_sett_infos];
|
||||
gs_free char *tmp1 = NULL;
|
||||
gs_free char *tmp_s1 = NULL;
|
||||
gs_free char *tmp_s2 = NULL;
|
||||
|
||||
g_print ("%s<setting", _indent_level (INDENT));
|
||||
g_print (" name=%s >\n", tmp1 = _xml_escape_attribute (sett_info->general->setting_name));
|
||||
g_print (" name=%s", tmp_s1 = _xml_escape_attribute (sett_info->general->setting_name));
|
||||
if (sett_info->alias)
|
||||
g_print ("\n%salias=%s", _indent_level (INDENT + 9), tmp_s2 = _xml_escape_attribute (sett_info->alias));
|
||||
g_print (" >\n");
|
||||
|
||||
for (i_property = 0; i_property < sett_info->properties_num; i_property++) {
|
||||
const NMMetaPropertyInfo *prop_info = sett_info->properties[i_property];
|
||||
|
|
|
@ -120,6 +120,11 @@
|
|||
<xsl:template match="setting">
|
||||
<refsect2>
|
||||
<title><xsl:value-of select="@name"/> setting</title>
|
||||
<xsl:if test="@alias">
|
||||
<para>
|
||||
Alias: <xsl:value-of select="@alias"/>
|
||||
</para>
|
||||
</xsl:if>
|
||||
<para><xsl:value-of select="@description"/>.</para>
|
||||
<para>
|
||||
Properties:
|
||||
|
|
|
@ -145,6 +145,7 @@ for setting_name in iter_keys_of_dicts(settings_roots, key_fcn_setting_name):
|
|||
|
||||
node_set_attr(setting_node, 'description', settings)
|
||||
node_set_attr(setting_node, 'name_upper', settings)
|
||||
node_set_attr(setting_node, 'alias', settings)
|
||||
|
||||
for property_name in iter_keys_of_dicts(properties):
|
||||
|
||||
|
|
Loading…
Reference in a new issue