diff --git a/cli/src/connections.c b/cli/src/connections.c index 30ac2671ff..011a4031b3 100644 --- a/cli/src/connections.c +++ b/cli/src/connections.c @@ -268,7 +268,7 @@ usage (void) #endif " down [id | uuid | path | apath] \n\n" " add COMMON_OPTIONS TYPE_SPECIFIC_OPTIONS IP_OPTIONS\n\n" - " modify [id | uuid | path] . \n\n" + " modify [--temporary] [id | uuid | path] ([+|-]. )+\n\n" " edit [id | uuid | path] \n" " edit [type ] [con-name ]\n\n" " delete [id | uuid | path] \n\n" @@ -416,10 +416,22 @@ usage_connection_modify (void) fprintf (stderr, _("Usage: nmcli connection modify { ARGUMENTS | help }\n" "\n" - "ARGUMENTS := [id | uuid | path] . []\n" + "ARGUMENTS := [id | uuid | path] ([+|-]. )+\n" "\n" - "Modify a single property in the connection profile.\n" - "The profile is identified by its name, UUID or D-Bus path.\n\n")); + "Modify one or more properties of the connection profile.\n" + "The profile is identified by its name, UUID or D-Bus path. For multi-valued\n" + "properties you can use optional '+' or '-' prefix to the property name.\n" + "The '+' sign allows appending items instead of overwriting the whole value.\n" + "The '-' sign allows removing selected items instead of the whole value.\n" + "\n" + "Examples:\n" + "nmcli con mod home-wifi wifi.ssid rakosnicek\n" + "nmcli con mod em1-1 ipv4.method manual ipv4.addr \"192.168.1.2/24, 10.10.1.5/8\"\n" + "nmcli con mod em1-1 +ipv4.dns 8.8.4.4\n" + "nmcli con mod em1-1 -ipv4.dns 1\n" + "nmcli con mod em1-1 -ipv6.addr \"abbe::cafe/56\"\n" + "nmcli con mod bond0 +bond.options mii=500\n" + "nmcli con mod bond0 -bond.options downdelay\n\n")); } static void @@ -6169,18 +6181,25 @@ editor_sub_usage (const char *command) "This command sets provided to this property\n")); break; case NMC_EDITOR_SUB_CMD_ADD: - printf (_("add [] :: add new option to the property\n\n" - "This command add provided to this property, if " + printf (_("add [] :: append new value to the property\n\n" + "This command adds provided to this property, if " "the property is of a container type. For single-valued " - "properties it replaces the value (same as 'set').\n")); + "properties the property value is replaced (same as 'set').\n")); break; case NMC_EDITOR_SUB_CMD_CHANGE: printf (_("change :: change current value\n\n" "Displays current value and allows editing it.\n")); break; case NMC_EDITOR_SUB_CMD_REMOVE: - printf (_("remove [|